Transparent Virtual Grid Cell generate exception

Hi, I am working on Virtual Grid. One cell of the grid has the cell type Color Picker. Now whenever I select the Transparent color of the cell it generate the Exception. Please can you guide me how can I over come this issue. Secondly when I set the font family of the cell “Sana FB Demi”, “Brush Script NT” it generate the exception. Plz guide me regarding this issue. I will be thankful to you.
Regards,

1 Reply

AD Administrator Syncfusion Team May 28, 2007 09:28 AM UTC

Hi Ali,

Now whenever I select the Transparent color of the cell it generate the Exception. Please can you guide me how can I over come this issue.
Answer:
~~~~~
The GridControl has a public property that allows transparent color.

this.gridControl1.SupportsTransparentBackColor = true;


Secondly when I set the font family of the cell “Sana FB Demi”, “Brush Script NT” it generate the exception
Answer:
~~~~~
You can set the Font properties like:



System.Drawing.Font font = someFontYouHaveCreated;



//use this font in cell 2,2

this.grid[2,2].Font.FontStyle = font.FontStyle;

this.grid[2,2].Font.Size = font.SizeInPoints;

this.grid[2,2].Font.FaceName = font.Name;


Kindly let us know if you need any further assistance.

Best Regards,
Jeba.


Loader.
Up arrow icon