Hi,
I'm using the RadGridView to programmatically insert new rows at specific locations. To accomplish this I use the following code:
var rowIndex = someNumber;
var row = Grid.Rows.NewRow();
Grid.Rows.Insert(rowIndex, row);
Though the row is visibly inserted in the grid by the following code, neither the values assigned to the cells of this row are displayed (though the assignment doesn't throw any exceptions), nor are the defined CellFormatting or RowFormatting events of the grid are fired.
If I use the following code instead all events and assignments are fine:
var row = Grid.Rows.AddNew();
I need an insert and not and add.
Please advise.
Best regards,
Anton
I'm using the RadGridView to programmatically insert new rows at specific locations. To accomplish this I use the following code:
var rowIndex = someNumber;
var row = Grid.Rows.NewRow();
Grid.Rows.Insert(rowIndex, row);
Though the row is visibly inserted in the grid by the following code, neither the values assigned to the cells of this row are displayed (though the assignment doesn't throw any exceptions), nor are the defined CellFormatting or RowFormatting events of the grid are fired.
If I use the following code instead all events and assignments are fine:
var row = Grid.Rows.AddNew();
I need an insert and not and add.
Please advise.
Best regards,
Anton