Setting focus to the particular cell in GridDataBoundGrid control

Hi, In our application, we are using GridDataBoundGrid control. Once the grid is loaded, I need to set focus to the particular cell (Eg. second row, second column) so that the user should be able to edit the text in that cell. Which property or method can be used to set the focus? SyncFusion version is 3.3 Thanks & Regards, Prathima

1 Reply

AD Administrator Syncfusion Team April 4, 2006 09:34 AM UTC

Hi Prathima, You can set the focus to required cell by using CurrentCell.MoveTo( ) method. Below is the code snippet // In Form_Load event this.gridDataBoundGrid1.CurrentCell.MoveTo(2,2,GridSetCurrentCellOptions.SetFocus); this.gridDataBoundGrid1.CurrentCell.BeginEdit(); Best regards, Madhan

Loader.
Up arrow icon