setting the order (ascending)

  • Thread starter Thread starter giannis
  • Start date Start date
G

giannis

I am a very new user of Visual Studio.
I have insert a .mdb (access) database in an application
and i have a text box in my form that represent a field from
this database(dataset).
What code can i write so the (numeric) data of this field (text box)
be sortted with ascending order in my form ?

Sorry for my english ! (i am from greece)
 
hello

You can do this from your SQL statement , ( direct in SQL select "Order BY
blabla" or if you used visual tools from the dataAdapter fill , alter sql
and add "Order BY blabla" ) another option is to create a dataview object ,
perform the filtering / sorting on this object and bind this to the control


HTH

regards

Michel Posseth
 
Back
Top