We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Select cell and display

Thread ID:





94345 May 7,2010 04:21 PM May 19,2010 03:35 AM Windows Forms 1
Tags: GridControl
Avelino Ruiz
Asked On May 7, 2010 04:21 PM


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.



Arulraj A [Syncfusion]
Replied On May 19, 2010 03:35 AM

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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.