DBC User,
You will have to do this programatically. If you have a consistent
schema for your databases, such that you know how to identify the individual
unique records in the table, you can store the value in that row which
identifies it uniquely before the sort, and then find the row and set the
focus after.
The only other way I can think of doing this for ALL records is to get
the object that the row is bound to, and then cycle the items bound to each
row of the grid, checking for equality.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"DBC User" <db*****@gmail.comwrote in message
news:11*********************@35g2000cwc.googlegrou ps.com...
When you sort a column in a datagrid, it sorts the rows based on the
column and display it properly, but it looses the orignal row which it
was focused before sorting? How can you make it to keep the orignal row
where the focus was, is there an attribute to do this? Or do we have to
do this programmatically?
Thanks.