Set Focus to a Row

Hi, I am using Databound Essetail grid. I want to now how can i set focus(or select) to a row in grid dynamically. Thanks and Regards, Rajiv

2 Replies

RA Rajiv April 5, 2004 04:07 AM UTC

Got the Answer. I am using following code to set the focus: gridAlarmDetails.Selections.Clear(); gridAlarmDetails.Selections.Add(Syncfusion.Windows.Forms.Grid.GridRangeInfo.Row(RowIndex)); gridAlarmDetails.CurrentCell.Deactivate(false); gridAlarmDetails.CurrentCell.Activate(RowIndex, ColumnIndex+1); gridAlarmDetails.Refresh(); Regards, Rajiv >Hi, > >I am using Databound Essetail grid. I want to now how can i set focus(or select) to a row in grid dynamically. > >Thanks and Regards, >Rajiv


AD Administrator Syncfusion Team April 5, 2004 08:04 AM UTC

You might try calling grid.CurrentCell.MoveTo. This deactivates the old current cell and activates the new currentcell all in one call.

Loader.
Up arrow icon