I''ve got a grid with a ColorEdit cell. If the user selects the Transparent colour from the ColorEdit it throws an "This control does not support transparent background colors." exception.
Is there a way to either (a) allow the ColorEdit to select Transparent (preferable); or (b) remove invalid colours from the ColorEdit colour list?
You can duplicate this problem by running the CellStyles sample, changing a cell to ColorEdit cell type, then in the cell selecting Transparent.
ADAdministrator Syncfusion Team June 23, 2005 12:59 AM UTC
The reason this is happening is the the control in the cell is derived from TextBoxBase, and this WindowsForms control does not accept Transparent colors with its default settings.
You can try directly calling Control.SetStyles through reflection to change this setting. (This method is protected, so you cannot directly call it.