Sorting DataTable Double Columns

If you are sorting the DataTable and the DataTable contains the data type "Double" column then in order to sort the column in correct order you need to specify that the column is "Double". This is because by default the columns are sorted by using the string comparison. After specifying the double column you can simply pass the DataTable to the DataView object and sort the DataView.

 

powered by IMHO 1.3

Print | posted @ Sunday, May 21, 2006 11:04 AM

Twitter