Cell style

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

2 Replies

AD Administrator Syncfusion Team 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);



VH Vicko Hazdovac June 11, 2007 06:49 AM UTC

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

thanks a lot

Loader.
Up arrow icon