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

Japanese language issue with GridListControl

Thread ID:

Created:

Updated:

Platform:

Replies:

59653 Apr 19,2007 06:14 AM Apr 22,2007 10:47 PM Windows Forms 2
loading
Tags: GridControl
Cuong Luc
Asked On April 19, 2007 06:14 AM

Hi,

I'm using GridListControl to display Japanese language text. The text displays correctly with the items inside the grid but not with the header text (the header text turned to rectangle characters).

I've been searching for some properties of this control or a solution for this issue. Please help me with this.

Thanks and best regards,

Cuong Luc.

header_issue.zip

haneefm [Syncfusion]
Replied On April 19, 2007 11:37 AM

Hi Cuong,

You can handle the QueryCellInfo event of the grid and set e.Style.CultureInfo property to hold rules for parsing and formatting the cell''s value in a cell. Here is a code snippet.

gridListControl1.Grid.QueryCellInfo +=new GridQueryCellInfoEventHandler(Grid_QueryCellInfo);

private void Grid_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
e.Style.CultureInfo = new System.Globalization.CultureInfo("ar-SA");
}

Here is a forum thread that discuss with the simillar issue.
http://www.syncfusion.com/support/forums/message.aspx?MessageID=40024

Best regards,
Haneef

Cuong Luc
Replied On April 22, 2007 10:47 PM

Thank you for your reply, Haneef.

I've tried with your code but it didn't work. After that, I tried not to set the CultureInfo, but set the font like this (also in the event handler method):
e.Style.Font = new GridFontInfo(new System.Drawing.Font(FontManager.FontName, 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(0))));

And it worked :)

Regards,

Cuong Luc.

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.

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.

;