Change backgroundcolor of selected cell

Hello

How can I change the background color of a selected cell? At the moment some unselected cells have a red background. If I select them, they get a blue background.

Thank you!


1 Reply

AS Asarudheen S Syncfusion Team August 18, 2011 12:04 PM UTC

Hi Peter,

Thank you for your interest in Syncfusion products.

You can change the background color of a selected cell by using following code.

this.grid.TableModel.Options.AlphaBlendSelectionColor = Color.Red;

this.grid.TableModel.Options.AlphaBlendSelectionColor = Color.Red;

this.grid.TableOptions.ListBoxSelectionColorOptions = Syncfusion.Windows.Forms.Grid.Grouping.GridListBoxSelectionColorOptions.DrawAlphablend;



Please let me know if you need any further assistance.

Regards,
Asarudheen.


Loader.
Up arrow icon