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.

Cell style

Thread ID:

Created:

Updated:

Platform:

Replies:

62194 Jun 9,2007 09:38 AM Jun 11,2007 02:49 AM Windows Forms 2
loading
Tags: GridControl
Vicko Hazdovac
Asked On June 9, 2007 09:38 AM

Hello...

How can I apply the same cell style on an entire column in the gridgroupingcontrol?

I know this is probably a simple thing but I'm completely stuck here :)

Administrator [Syncfusion]
Replied On June 9, 2007 10:54 AM

To set style properties on an entire column, you use (for example, to set the backcolor on the column):

grid.TableDescriptor.Columns["CategoryName"].Appearance.AnyRecordFieldCell.BackColor = Color.AliceBlue;


Now, if you really have a GridStyleInfo object defined and you want to apply this style object to the column, then you can use code like:

grid.TableDescriptor.Columns["CategoryName"].Appearance.AnyRecordFieldCell.ModifyStyle(style, Syncfusion.Styles.StyleModifyType.Override);


Vicko Hazdovac
Replied On June 11, 2007 02:49 AM

this worked excellent (the second example is what I needed)

thanks a lot

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.

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.

;