Monday, August 16, 2010

Retaining row selections after sorting in a DataGridView

After sorting, the selection is based on the row number and stays that way; the selection does not follow the actual sorted row, which is the behavior you would normally expect.

See http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/01f937af-d0d0-4de5-8919-088e88c5af77

See http://kjellsj.blogspot.com/2006/02/datagridview-selectionchanged-escapade.html

See http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windowsforms/topic61245.aspx

No comments: