Hello,
is there an easy way to keep the selected record of a GridDataBoundGrid selected after sorting a column?
The default sort behaviour is that the selection stays at the row number but not at the previous selected record.
If it is not possible -> Is there an event fired after the grid finished the sort operation?
Thanks,
Matthias
AD
Administrator
Syncfusion Team
September 5, 2005 11:37 AM UTC
Here is a forum thread on this.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=21991
AD
Administrator
Syncfusion Team
October 25, 2005 11:34 PM UTC
Hi Clay,
I am having the same problem. I am able to move to the correct row after sorting, but the selection will not persist. I have tried adding a selection back using:
this.grid.Selections.Add(GridRangeInfo.Row(i));
The selection is being added in the DrawCell event after a sort has been performed but then is getting cleared out again. I can see the selection flicker, but it does not stay. Are there any events that fire after DrawCell that could clear this out?
Thanks in advance
JH
AD
Administrator
Syncfusion Team
October 26, 2005 12:11 AM UTC
You should try adding the selection back in your SortColumn override the call to the baseclass. DrawCell is hit hit constantly, and cell by cell. Calling Selections.Add in DrawCell is not normally something you would do.