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:

Created:

Updated:

Platform:

Replies:

94374 May 10,2010 03:48 PM UTC Jun 1,2010 07:06 PM UTC ASP.NET Web Forms (Classic) 3
loading
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;

gridControl1.InvalidateVisual();

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?

Thanks.

Kishor.

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,

gridControl1.Model.ApplyFont();

Please let us know if you need any further details.

Thanks
Ganesan

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 8.2.0.18 and I'm using the WPF GridDataControl.

Thanks.

Kishor.


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.

Thanks,
Varun

CONFIRMATION

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.

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

;