Select cell and display

Hello,

This is a Grid Windows control question.

How can I move the cursor to the last row of the grid, and also scroll when needed so that the user can see what is the last data entered, after I populate the grid?

I have tried:

PerformanceGrid.Grid.Selections.SelectRange(GridRangeInfo.Cell(PerformanceGrid.Grid.RowCount, 1), true);

Which effectively selects the first cell of the last row. However I still have to scroll down to go to the bottom row.

Thanks,

Avelino

1 Reply

AA Arulraj A Syncfusion Team May 19, 2010 07:35 AM UTC

Hi Avelino,

Thanks for your interest in Syncfusion Products.

To get focus on the selected cell, you need to activate the respective cell with focus. Using the following code, this can be achieved.

this.gridControl1.CurrentCell.Activate(this.gridControl1.RowCount, 1, GridSetCurrentCellOptions.SetFocus);


Here is a sample for your reference.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=DisplaySelectedCell17297182.zip

Regards,
Arulraj.A

Loader.
Up arrow icon