Srijith Sarman

Time,space and living

  Home  |   Contact  |   Syndication    |   Login
  16 Posts | 1 Stories | 8 Comments | 1 Trackbacks

News



Archives

Algorithms

General

Other software

Programming .NET

Wednesday, March 7, 2007 #

            As there is a clear overload for sorting the datatable as DataTable.Select(filter expression,Sort expression), I don't understand why some of the develepors go for dataview only for the sorting purpose.As we know ,in many cases dataview would not suit for all the requirements that can be done with a DataTable or DataSet. And above all, though we give a sort expression to a dataview,if we retrive the datatable from the dataview,the sorting will go.

Recently I had confronted with this isuue when implementing the sorting feture of  a nested datagrid in an Asp.net application.dataview cannot be given as a datsource since we cannot have a child table in a dataview.Immediately I switched back to the old code.i.e:DataTable.Select(filter,sort expression)