Open Source .Net
Adsence750x90
Wednesday, November 26, 2008
Multiple Sorting in DataTables in C# - code helper and examples
We can multiple sort DataTable using DataView
Example
DataTable dt=new DataTable;
Bind dt From DataBase
DataView dv=dt.DefaultView;
dv.Sort="Column1,Column2,Column3 DESC";
dt=dv.ToTable();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment