Hi all,
i am using ultra grid. i need to check whether active cell is last column of ultragrid or not. please help out for this
Hello Gurumurthy,
In order to access the active cell of the grid, you can use the ActiveCell property, which will return or set the active cell of the grid. After that, its column index should be checked if it is equal to the index of the last column, the code should look similar to this:
var cell = this.ultraGrid1.ActiveCell;
if (cell != null && cell.Column.Index == this.ultraGrid1.DisplayLayout.Bands[0].Columns.Count - 1)
{
//your custom logic
}
Please let me know if you have any questions.
Regards, Ivan Kitanov
thanks for the reply ivan
Actually in grid datasource contains 59 columns. but I am showing only 5 column for index mismatch happening