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

Unable to change GridDataControl font/font size

Thread ID:





94374 May 10,2010 03:48 PM UTC Jun 1,2010 07:06 PM UTC ASP.NET Web Forms (Classic) 3
Tags: GridGroupingControl
Kishor Kukadia
Asked On May 10, 2010 03:48 PM UTC

Hi all,

I'm currently having problems altering the Font/Fontsize across the entire GridDataControl programatically.

In xaml there is a style applied to the GridDataControl to set the font to Ariel.

However when I run the app and do the following in code:

BlotterConfigModel model = dlg.BlotterConfigModel;
gridControl1.Model.RowHeights.DefaultLineSize= model.RowHeight;

gridControl1.FontFamily = model.Font;
gridControl1.FontSize = model.FontSize;


The rows size changes but the font remains the same. Using the debugger I can see the font has changed in the model but visually nothing happens.

Anyone have any thought on this?



Ganesan K [Syncfusion]
Replied On May 21, 2010 08:53 AM UTC

Hi Kishor,

Thank you for using Syncfusion Products.

You need to call ApplyFont() method as follows after modifying the Font information,


Please let us know if you need any further details.


Kishor Kukadia
Replied On May 26, 2010 04:27 PM UTC

Hi thanks for the suggestion. However I'm having a couple of issues applying the change you suggested.

My gridControl1 is of type GridDataControl

The Model is hence of type GridDataTableModel

GridDataTableModel doesn't have a pubic function called ApplyFont(). I'm using syncfusion and I'm using the WPF GridDataControl.



Varun P [Syncfusion]
Replied On June 1, 2010 07:06 PM UTC

Hi Kishor,

We are very sorry for the delay in getting back to you.

This method was not present in GridDataControl in v8.2.0.18. We have added this method in our latest source. In order to get the latest dll's could you please create a Direct Trac incident.

Please let me know if you have any queries.



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