Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

You have to load the table into a DataView, set the

DataView's Sort property to "ASC ColumnName" or "DESC

ColumnName", and bind the now-sorted DataView back to the

grid.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted
Well a DataGrid has to have a source in which it is bound to correct? To display sorted info by a column should be as easy as sorting the source itself. At least, one would hope. ;)
Gamer extraordinaire. Programmer wannabe.
Posted

Bound DataGrid...

 

You don't necessarily have to bind a data grid to a data source. You can create the record set (or source) and then add the data to the grid programaticlly. In that case, I would just sort and/or re-sort the source and either re-fill or refresh the grid as needed

Being smarter than you look is always better than looking smarter than you are.

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...