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: