Declined
Last Updated: 05 Jun 2015 08:32 by ADMIN
ADMIN
Stefan
Created on: 30 Jul 2012 05:30
Category: GridView
Type: Bug Report
4
FIX. RadGridView - currently it is not possible to change the CurrentColumn in the CurrentRowChanged event
To reproduce:
void radGridView1_CurrentRowChanged(object sender, Telerik.WinControls.UI.CurrentRowChangedEventArgs e)
        {
            e.CurrentRow.Cells[2].ColumnInfo.IsCurrent = true;
        }
1 comment
ADMIN
Ivan Petrov
Posted on: 02 Jun 2015 11:50
Changing the current cell of RadGridView is a complex operation consisting of two sub-operations - changing the current row and changing the current column. These two operations are executed in sequence, first the current row changes and then the current column. The CurrentRowChanged and CurrentColumnChnaged events exist only for convenience and are not a suitable place to change the current cell. If you change the current column in a CurrentRowChanged event handler the sub-operation for changing the column would still have not been executed and when it is, it will overwrite your changes. 

The right place to change the current cell is the CurrentCellChanged. From a CurrentCellChanged event handler you can change both the current row and the current column.