Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Keep selection

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Keep selection
Link Posted: 14-Sep-2005 20:22
Hi

When I change sort in column row sellection is lost (I have single row sellection).
How can I resolve this problem?

Best regerds
Link Posted: 15-Sep-2005 12:29
Yes, on data bound grid selection gets lost after sorting, as new virtual nodes list is prepared to display changed data.
We've inserted example of how to keep single and multiple selection on data bound grid into prepared to publishing new version FlyGrid.Net
See the GridStylizing sample in the new version. To see how to work check Use DataTable as Data Source checkbox (Array as DataSource doesn't alllows sorting, used DataTable as DataSource that allows sorting), select one or multiple rows and click on column header.
See the screenshots:
FlyGrid before sorting
FlyGrid after sorting

Also in new version add ColumnSortChanging event, and changed ColumnSortChanged event. See handlers of these events in the GridStylizing sample.
The new version will published to the beginning of the next week.
Link Posted: 27-Sep-2005 00:22
Hi

This example is greate but ... don't work.

First click on column hader ... sort great
Secont click on column header ... data are not sorted
Third click on column header .. sort great
Next clicks on column header .. sort great

See on your example.

There is a bug?

Robert
Link Posted: 27-Sep-2005 10:34
Yes, sorry, see the new version - this bug is fixed