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.
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:

Created:

Updated:

Platform:

Replies:

106133 Dec 12,2012 10:37 AM UTC Dec 12,2012 11:49 AM UTC Windows Forms 1
loading
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.

Query:

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.

Notes:

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

Code snippet:

<code>

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

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

<code>

void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)

{

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

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

!gridGroupingControl1.TableControl.CurrentCell.IsEditing)

{

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

}

}</code>

Please let me know if you have any other concerns.

 

Regards,

Arun.

 


CONFIRMATION

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.

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

;