Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

sorting a DataTable in C#

//Sorting the Table
            DataView dv = dt.DefaultView;
            dv.Sort = "ParamValue asc";
            DataTable sortedtable1 = dv.ToTable();
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #sorting #DataTable
ADD COMMENT
Topic
Name
6+3 =