Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Sort a DataTable after Fill....

 

sorry....

i need to sort my dataTable after i filled it,

how?..

 

thnk you!

Edited by LOFRANK
live any day of your life like your last.
Posted
Use the RowFilter of the Dataview of the datatable.

 

dv.RowFilter = "MyColumn = '" & SomeString & "'"

 

To add to what Robby is saying you can also do it in your SQL syntax if you are using your own, by using order by.

 

Ex:

 

"SELECT * From DatabaseName.TableName ORDER BY columnName"

"In the immortal words of Socrates, who said "' I drank what?!'"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...