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

TextColor in styles

Thread ID:





75213 Jul 16,2008 01:35 PM UTC Jul 16,2008 02:26 PM UTC WPF 3
Tags: GridControl
Ferenc Molnar
Asked On July 16, 2008 01:35 PM UTC

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:


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

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

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

Administrator [Syncfusion]
Replied On 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.

Ferenc Molnar
Replied On July 16, 2008 02:14 PM UTC


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



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

Administrator [Syncfusion]
Replied On 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.


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