KB
Kalaiarasan B
Syncfusion Team
February 1, 2012 12:30 PM UTC
Hi Alberto,
Thank you for your interest in Syncfusion products.
To remove the name or value of the color in the cell, please make use of the following code in your application
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.Style.CellValueType == typeof(Color))
{
e.Style.BackColor = (Color)e.Style.CellValue; // sets the back color based on the selected color from dropdown
e.Style.Text = string.Empty; // removes the color name/value
}
}
Please let me know if you have any other concerns.
Regards,
Kalai