To change a cell to ColorEdit cell, you can set the CellType to ColorEdit and the Text property to some appropriate color value. The color object can be retrieved from the ColorEdit cell by converting its type of the Text from string to Color by using the ConvertFromString() method of the TypeDescriptor.GetConverter().
The following screenshot illustrates the output.
Figure 1: CellType property set to ColorEdit
This page will automatically be redirected to the sign-in page in 10 seconds.