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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid cell fonts

Thread ID:





10083 Jan 22,2004 01:45 AM UTC Feb 1,2004 03:29 PM UTC WinForms 2
Tags: Grouping
Marco Ensing
Asked On January 22, 2004 01:45 AM UTC

It would really be nice if the appearance of the cells can be set by the Windows.Drawing.Font.FamilyName, Font.Style and Font.Size So get a constructor GridFontInfo(System.Drawing.Font f) If I use the FontDialog control and try to pass this to the Appearance Cell.Font, it''s a challenge to find out whic Facename (?) are supported. What is the best and easiest way for this Have a GridFontDialog control ? Marco

Administrator [Syncfusion]
Replied On January 22, 2004 03:21 PM UTC

We''ll add such a ctor. Really makes sense. In the meantime you need to set these values in order to initialize a GridFontInfo from a Font object: GridFontInfo gridFont = new GridFontInfo(); gridFont.Facename = font.FontFamily.Name; gridFont.Size = font.Size; gridFont.Unit = font.Unit; gridFont.FontStyle = font.Style; Stefan

Marco Ensing
Replied On February 1, 2004 03:29 PM UTC

Thanks Stefan, Keep up the good work. >We''ll add such a ctor. Really makes sense. > >In the meantime you need to set these values in order to initialize a GridFontInfo from a Font object: > >GridFontInfo gridFont = new GridFontInfo(); >gridFont.Facename = font.FontFamily.Name; >gridFont.Size = font.Size; >gridFont.Unit = font.Unit; >gridFont.FontStyle = font.Style; > >Stefan >


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

Live Chat Icon For mobile
Live Chat Icon