JJ
Jisha Joy
Syncfusion Team
April 8, 2010 09:01 AM UTC
Hi Bina Thakkar,
Thank you for using Syncfusion products.
You need to handle QueryCellStyleInfo event, instead of TableControlPrepareViewStyleInfo to set the tag for the cells. See the code:
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
GridTableCellStyleInfo style = (GridTableCellStyleInfo)e.Style;
if (style.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record && e.TableCellIdentity.ColIndex == 1)
{
Record record = style.TableCellIdentity.DisplayElement.ParentRecord;
string col1 = record.GetValue("column1").ToString();
if (col1.Equals("0"))
{
style.CellTipText = "Invalid column1";
style.Tag = "Error";
}
else
{
style.Tag = "";
}
}
}
Regards,
Jisha
JJ
Jisha Joy
Syncfusion Team
April 9, 2010 09:35 AM UTC
Thank you for your update.