sorting
-
i have a field wth name (active). it is bool.i fill a datagrid with name , lname and active but i want that record has active = true be in first row of data grid . how can i sort it in pageloade? can i use order b active?
-
i have a field wth name (active). it is bool.i fill a datagrid with name , lname and active but i want that record has active = true be in first row of data grid . how can i sort it in pageloade? can i use order b active?
Dont fill it from System.Data.DataTable. Create a view System.Data.DataView and set the Sort-Property. BR Stephan
\\\\\\|/// \\\\ - - // ( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| www.stephan-pilz.de |
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)