Hi Harry,
Thank you for interest in Syncfusion products.
Please try the code below to solve this issue.
private void button1_Click_1(object sender, EventArgs e)
{
double t = Convert.ToDouble(this.textBox1.Text);
String s_text=String.Format("{0:#,####}", t);
textSearchInGroup(s_text);
}
GridCurrentCell cc;
public void textSearchInGroup(string text)
{
cc= this.gridControl1.CurrentCell;
if (cc.RowIndex == -1 || cc.ColIndex == -1)
this.gridControl1.CurrentCell.Activate(1, 1);
else
{
this.gridControl1.CurrentCell.Activate(cc.RowIndex, cc.ColIndex);
}
GridFindReplaceDialogSink frDialog = new GridFindReplaceDialogSink(this.gridControl1);
GridFindTextOptions option1 = GridFindTextOptions.WholeTable | GridFindTextOptions.MatchCase;
GridFindReplaceEventArgs frEventArgs = new GridFindReplaceEventArgs(text, "", option1, frLocationInfo);
GridRangeInfo frLocation = frDialog.Find(frEventArgs) as GridRangeInfo;
cc=this.gridControl1.CurrentCell;
this.gridControl1[cc.RowIndex, cc.ColIndex].BackColor = Color.Yellow;
}
Please refer the attached sample for more details.
http://websamples.syncfusion.com/samples/Grid.Windows/F72409/main.htmPlease let me know if this helps.
Regards,
Srirajan