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

GGC Selection

Thread ID:

Created:

Updated:

Platform:

Replies:

39438 Jan 8,2006 01:18 PM UTC Jan 10,2006 09:01 AM UTC Windows Forms 2
loading
Tags: GridControl
prethi
Asked On January 8, 2006 01:18 PM UTC

hi I''ve a GGC which contains cells of type textbox, checkboxes .I want to change the backcolor of the checked columns inthe GGC.ie,checked columns should be of one color,unchecked should be of some other color & textbox some other color. How can I do this? thanks prethi

stanleyj [Syncfusion]
Replied On January 9, 2006 03:52 PM UTC

Hi Prethi, The style properties of GGC are to done in TableControlPrepareViewStyleInfo or QueryCellStyleInfo handlers. private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) { if(e.TableCellIdentity.Column != null) if(e.TableCellIdentity.Column.Name == "check/uncheck" && e.Style.CellType == "CheckBox" && Convert.ToBoolean(e.Style.CellValue)) e.Style.BackColor = Color.Pink; else e.Style.BackColor = Color.Yellow; if(e.Style.CellType == "TextBox") e.Style.BackColor = Color.LightSteelBlue; } Best regards, Stanley

Administrator [Syncfusion]
Replied On January 10, 2006 09:01 AM UTC

thanks >Hi Prethi, > >The style properties of GGC are to done in TableControlPrepareViewStyleInfo or QueryCellStyleInfo handlers. > > private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) > { > if(e.TableCellIdentity.Column != null) > if(e.TableCellIdentity.Column.Name == "check/uncheck" && e.Style.CellType == "CheckBox" && Convert.ToBoolean(e.Style.CellValue)) > e.Style.BackColor = Color.Pink; > else > e.Style.BackColor = Color.Yellow; > > if(e.Style.CellType == "TextBox") > e.Style.BackColor = Color.LightSteelBlue; > } > >Best regards, >Stanley

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

;