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

Cell style

Thread ID:





62194 Jun 9,2007 01:38 PM UTC Jun 11,2007 06:49 AM UTC WinForms 2
Tags: GridControl
Vicko Hazdovac
Asked On June 9, 2007 01:38 PM UTC


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 02:54 PM UTC

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 06:49 AM UTC

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

thanks a lot


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