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. Image for the cookie policy date

TextColor in styles

Good day,

Your documentation offers an example to change the defaults on the base styles. It shows changing the "TextColor" property. However, I cannot find that property on the GridStyleInfo class:

http://www2.syncfusion.com/cref_63/-4-1-index.aspx

GridStyleInfo standard = model.BaseStylesMap["Standard"].StyleInfo;

standard.TextColor = Color.FromArgb(0, 21, 84);

TextColor isn't a property of GridStyleInfo.. am I missing something? :)


3 Replies

AD Administrator Syncfusion Team July 16, 2008 01:43 PM UTC

There are 2 GridStyleInfo classes, one in the Windows Forms namespace, SyncFusion.Windows.Forms.Grid, and one in the WPF namespace, Syncfusion.Windows.Controls.Grid. The class reference entry you noted is from the mature, fully populated Windows Forms GridStyleInfo.

We are still adding properties in the WPF GridStyleInfo. So, for now, there are only limited cell properties in the WPF GridStyleInfo. More are coming including support for fonts, colors, etc.



FM Ferenc Molnar July 16, 2008 02:14 PM UTC

Hi,

My link might have been wrong, but if you look at those 2 pictures, it will explain it better:

http://cid-9eeb57eb098c0598.skydrive.live.com/self.aspx/Images/WPFGrid1.JPG

http://cid-9eeb57eb098c0598.skydrive.live.com/self.aspx/Images/WPFGrid2.JPG

We are currently looking to use a WPF based grid for a new version of our interface and being able to lock rows/columns and joining cells is a must for us (which your grid supports). So we are trying to figure out if we can work in additional features we need into your grid. However, it being in "beta" at this time adds a bit of uncertainy versus your competitors, but I am going ahead with a try-out.

Thank-you for your replies :)



AD Administrator Syncfusion Team July 16, 2008 02:26 PM UTC

You are correct about the docs. Sorry.

But they are premature in that currently there is no TextColor property in GridStyleInfo. I think the /// comments (used to generate the docs) on those classes were copied from similar classes in the Windows Forms code, and have not been edited yet for consistency as we are still adding features which eventually would make the /// match the class in this case.


Loader.
Live Chat Icon For mobile
Up arrow icon