Completed
Last Updated: 18 Feb 2019 11:12 by ADMIN
ADMIN
Dinko | Tech Support Engineer
Created on: 23 Oct 2018 12:49
Category: GridView
Type: Bug Report
0
GridView: SelectedCells collection of the selected row is not updated when new cells are added runtime
This behavior is reproducible when the SelectionUnit property of the RadGridView is set to "FullRow".
SelectedCells collection is not of the selected row updated when new columns are added runtime. For example, you have selected the first row which has 3 cells. Then you add 2 new columns. Now the row has 5 cells but the selected cells collection still have 3.

A possible workaround which can be used is to reset the SelectedItem property of the RadGridView.

var selectedItem = testGrid.SelectedItem;
testGrid.SelectedItem = null;
this.testGrid.Columns.Add(new GridViewDataColumn() { Header = "Value3", DataMemberBinding = new Binding("Value3"), Width = 100 });
this.testGrid.Columns.Add(CreateColumn("Value4", "Value4"));
testGrid.SelectedItem = selectedItem;
1 comment
ADMIN
Vera
Posted on: 18 Feb 2019 11:12
Hello,

The fix for this issue will be available with R1 2019 SP expected later this week.

Regards,
Vera