Hi, Paul.
Sort your data before you bring it into the grid. SQL has "ORDER B
customerID ASC".
If you dont't sort your data before, you can do it at next level.
I assume that your query gets the data into dataset, so this gives yo
the possibility to do some sorting and filtering before binding th
data to the grid. Datasets tables have an object called "DefaultView
(type dataview) which has a property "RowFilter". This takes a
SQL-string as an parameter, like "ORDER BY customerID ASC". Dataview i
the object that you bind to the grid, not the dataset. Check ADO.NE
documentation and you'll find correct syntax for these, as I threw thi
answer just by memory :)
-tom
-
tomBon
-----------------------------------------------------------------------
Posted via
http://www.codecomments.co
-----------------------------------------------------------------------