Completed
Last Updated: 10 Sep 2015 06:11 by Todor
Todor
Created on: 02 Sep 2015 10:36
Category: GridView
Type: Bug Report
0
FIX. RadGridView - the selection is lost after exporting with GridViewSpreadExport
To reproduce:
Set RadGridView MultiSelect property to true and select several rows. Export RadGridView using GridViewSpreadExport and only current row will be preserved(all selected rows are lost).

Workaround:
Save all selected rows in a collection before the export and after it set saved rows as selected.
List<GridViewRowInfo> selectedRows = new List<GridViewRowInfo>();
foreach (GridViewRowInfo row in this.radGridView1.SelectedRows)
{
    selectedRows.Add(row);
}

// Export

foreach (GridViewRowInfo row in selectedRows)
{
    row.IsSelected = true;
}
0 comments