Home Forums WinForms controls Xceed Grid for WinForms How to set focus on a particular cell / row in xceed grid for .Net Reply To: How to set focus on a particular cell / row in xceed grid for .Net

User (Old forums)
Member
Post count: 23064

You need to also set the CurrentRow, and call the BringIntoView() method on it.

e.g.:

mParentForm.WatchListGrid.SelectedRows.Clear();
thisRow = mParentForm.WatchListGrid.DataRows[index+1];
mParentForm.WatchListGrid.SelectedRows.Add(thisRow);

mParentForm.WatchListGrid.CurrentRow = thisRow;
mParentForm.WatchListGrid.CurrentRow.BringIntoView();

Imported from legacy forums. Posted by André (had 2403 views)