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

How do I change font styles while importing an Excel file to Grid?

By default, the font styles of the Excel Cells are imported from Excel to Grid, as it is. The font styles of the Excel Cells can be changed while importing them to Grid by handling the QueryImportExportCellInfo event. Using this event, the font style can be set, by using the Font.Facename property and other styles can also be changed when e.Action is set as GridConverterAction.Import.

C#

VB

Screenshots:

Figure 1: Font type in Excel

 

Figure 2: Font type in Grid after importing the above Excel sheet

Sample:

C#: Changing_Font_Style_while_importing_CS

VB: Changing_Font_Style_while_importing_VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
4309 03/19/2015 03/19/2015 WinForms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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