Hi,
Here is your modified code below that should work fine.
public void FindCellText(string text)
{
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
if (cc.RowIndex == -1 || cc.ColIndex == -1)
this.gridGroupingControl1.TableControl.CurrentCell.Activate(1, 1);
else
this.gridGroupingControl1.TableControl.CurrentCell.Activate(cc.RowIndex, cc.ColIndex);
GridFindReplaceDialogSink frDialog = new GridFindReplaceDialogSink(this.gridGroupingControl1.TableControl);
GridFindTextOptions option = GridFindTextOptions.None;
option |= GridFindTextOptions.WholeTable;
GridFindReplaceEventArgs frEventArgs = new GridFindReplaceEventArgs(text, "", option, null);
frDialog.Find(frEventArgs);
if (!this.gridGroupingControl1.TableControl.HasControlFocus)
this.gridGroupingControl1.TableControl.Focus();
}
Thanks for using Syncfusion Products.
Regards,
Rajagopal