c#

Sorting rows in a data table

A
Desh-Duniya Team Author
| Published September 09, 2019
DataView dv = OriginalTableName.DefaultView;
dv.Sort = "col1_name,col2_name desc";
DataTable dt = dv.ToTable();

Discussion (0)

Please sign in to participate in the discussion.
No comments yet. Be the first to join the conversation!