Joseph,
Your surely miss something because it is easy to do.
For that is the DataView or the DefaultView. Which is a view on a datatable.
In that DataView or Defaultview there is a property Sort. You can set that
while you can get the current value if a user changes that by clicking at
the top of the grid.
myDataTable.Defaultview.Sort = "MySecondColumn"
I hope this helps,
Cor
"Joseph Ferris" <jo***********@gmail.com> schreef in bericht
news:11**********************@t31g2000cwb.googlegr oups.com...
Hello,
Is it possible to retrieve and set the sort order for a DataGrid
control on a WinForm? I had a user request this functionality, and I
can't seem to find a place to set and retrieve it from. Am I missing
something, or is this something that is more difficult to do than is
worth the time?
Thanks in advance!
Joseph