We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridPrepareViewStyleInfoEventArgs e.Style need a way of setting alphablend

Thread ID:





106133 Dec 12,2012 10:37 AM UTC Dec 12,2012 11:49 AM UTC WinForms 1
Tags: GridControl
Gaukhar Massabayeva
Asked On December 12, 2012 10:37 AM UTC

How can one set AlphaBlend color on GridPrepareViewStyleInfoEventArgs e.Style.BackColor?
Thank you

Arun Kumar V [Syncfusion]
Replied On December 12, 2012 11:49 AM UTC

Hi Gaukhar,


Thanks for your interest in syncfusion products.


How to set AlphaBlend color on GridPrepareViewStyleInfoEventArgs e.Style.BackColor?

To set the backcolor of the gridgrouping control with AlphaBlendSelectionColor the querycellinfo event can be customized. I have attached the customized code for your reference.


Similarly the prepareviewstyleinfo event can also be triggered for this operation instead of the querycellinfo event.

Code snippet:


this.gridGroupingControl1.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Any;

this.gridGroupingControl1.TableModel.Options.ShowCurrentCellBorderBehavior = Syncfusion.Windows.Forms.Grid.GridShowCurrentCellBorder.HideAlways;


void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)


if (e.TableCellIdentity.RowIndex == gridGroupingControl1.TableControl.CurrentCell.RowIndex &&

e.TableCellIdentity.ColIndex == gridGroupingControl1.TableControl.CurrentCell.ColIndex &&



e.Style.BackColor = gridGroupingControl1.TableModel.Options.AlphaBlendSelectionColor;



Please let me know if you have any other concerns.






This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon