Dataview sort not working
-
Hi, Am assigning a dataset to dataview and trying to sort dataview. But, its not sorting. DataView dv = new DataView(DataSet.Tables[0]); dv.Sort = "ColName"; Please help me as this is urgent.
rmr
-
Hi, Am assigning a dataset to dataview and trying to sort dataview. But, its not sorting. DataView dv = new DataView(DataSet.Tables[0]); dv.Sort = "ColName"; Please help me as this is urgent.
rmr
The DataView doesn't sort the DataTable. Make sure that you are not still referencing the DataTable object, because the DataTable will still NOT be sorted. You will have to reference the DataView object to utilize the sorting. Otherwise your code looks okay, so if you need more help you'll have to give us some more information about how you are using the DataView object after you sort it. Hope this helps.