BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Srinivasan,
Thank you for your interest in Syncfusion product.
If you want to verify the same value is there in a column of all rows in a grid. We have customized the sample as per your need. Please refer the below attached sample.
Regards,
Muthukumar K
Hi Sirnivasan,
Sorry for the delay in
response.
If you want to identify whether the same value is occurred on particular column
(column as 3) or not, you can use the “Contains”
method. And also if you want to separate the delimiter in the grid cellvalue,
you can use “Replace” method. Please
refer the below code,
Code:
string myArray;
private
void button1_Click(object
sender, EventArgs e)
{
if
(checkBox1.CheckState == CheckState.Checked)
{
string
s = cmbSearch.Text;
myArray = s.Replace(",", "").Replace(".","").Replace(" ","");
highlighttext.HighlightText =
myArray.ToString();
this.gridControl1.Refresh();
}
for
(int k = 1; k < this.gridControl1.RowCount;
k++)
{
if
(this.gridControl1[k,
2].Text.Contains(myArray))
{
this.gridControl1[k,
2].BackColor = Color.DeepSkyBlue;
}
else
{
this.gridControl1[k,
2].BackColor = Color.White;
}
}
}
Please let us know if I misunderstood your
query.
Regards,
Muthukumar K