Hi Prabjitbehl,
To display the color insted of number in a gridcell, you need to set the CellType of the column's appearance object to "ColorEdit".Setting this celltype display the DropDownButton in a gridcell to select color at runtime. If you want to hide the DropDownButton then you can also set the ShowButtons property to GridShowButtons.Hide. Below are the codes that shows this task.
this.gridGroupingControl1.TableDescriptor.Columns["ColorColName"].Appearance.AnyRecordFieldCell.CellType = "ColorEdit";
this.gridGroupingControl1.TableDescriptor.Columns["ColorColName"].Appearance.AnyRecordFieldCell.ShowButtons = GridShowButtons.Hide;
You can set the cellvalue of ColorEdit cell by using the below code:
foreach (Record rec in this.gridGroupingControl1.Table.Records)
{
rec.SetValue("ColorColName", Color.RoyalBlue);
}
Here is a sample for your reference.
GGCColorEditCell.zipBest regards,
Haneef