Multicolumn sorting
-
hey can any one pls tell me how to sort mutiple cloumns in the datagrid control in .asp.net Patel Neelesh A
I didnt understand the question correctly.I would like to ask why there is need to sort the datagrid.I guess u are using a datatable as Datasource to the grid. so u can sort the datatable before binding it to grid or Do you want the coulumns in datagrid enabled for sorting when the user clicks on them? Mandar Patankar Microsoft Certified professional
-
hey can any one pls tell me how to sort mutiple cloumns in the datagrid control in .asp.net Patel Neelesh A
Patel You need have a SortHandler for the DataGrid to handle all sorting. For the column, you need to specify the SortExpression (DataSource property), which you can use in the EventHandler to do the soting. MSDN Example of 'DataGrid Web Server Control' has an example to this effect. Vasudevan Deepak Kumar Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/