Hi , I am encountering problem with
Datagrid Header
the scenarios are:
1. add a datagrid, bind with data
2. add resx for chinese
3. add chinese header for data grid column header
the column header mess up in both english and chinese
can any one help in this, I have not yet went through the forum. is there any solution or problem other have encountered?
AD
Administrator
Syncfusion Team
January 24, 2006 12:52 PM UTC
Hi Medicomm,
There are related articles in the KnowledgeBase section and here is the one you are looking for
< a rel='nofollow' href = "http://www.syncfusion.com/support/kb/tools/Default.aspx?ToDo=view&questId=293" >How do I localize all the text associated with Syncfusion controls in my application?
Refer this if you need to handle
Localization using Resource file
Thanks
Haneef
ST
Steven Tsai
January 25, 2006 01:47 AM UTC
hi thanks alot, I know how to do that, but I am encountering bugs
the datagrid column sequence mess up in both english and chinese mode, after I add chinese character in datagrid column header , there are more than 2 tabs in my datagrid.
I am currently using syncfusion 3.2.0.1
can you please help for this
ST
stanleyj
Syncfusion Team
January 25, 2006 08:52 AM UTC
Hi Medicomm,
I am not sure, what you expect the grid to do. The code below will change the first column header text.
private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if(e.ColIndex == 1 && e.RowIndex == 0)
e.Style.Text = "Local";
}
If the above code does not help, please upload a sample, so that we may suggest some solutions.
Best regards,
Stanley
ST
Steven Tsai
February 2, 2006 07:42 AM UTC
Hi , sorry for the delay , just came back from chinese new year holiday. please check this, in this project
1. I am using gridgrouping control inside the tab,
2. and I binded some data from SQL server,
3. I switch the language of this form into chinese traditional
4. I add chinese header text for each tab and each column in tab4 under the table descriptor
5. when I switch back to default language , the column header screwed up. I didn''t edit anything in english mode
BugofChineseColumnHeader.zip
ST
stanleyj
Syncfusion Team
February 3, 2006 09:30 AM UTC
Hi Medicomm,
Thanks for the sample, but I do not see any issue.
what exactly am I to do in order to see the problem?
When you say ''when I switch back to default language'' are you switching the languages in the Region and Language setting options?
Regards,
Stanley
ST
Steven Tsai
February 6, 2006 01:47 AM UTC
hi , thanks for your reply
when I say ,switch into default, means on the from the property -> language of the form1
I need to add chinese in chinese mode, once I have done, I need to switch it back to default and let the non-chinese clients have the english
please check the pic001.jpg
the chinese column in chinese mode, should not display at the default language mode(tabpage4), that is the problem... because I didn''t input any chinese in default mode.
pic001.zip
ST
stanleyj
Syncfusion Team
February 7, 2006 11:36 AM UTC
Hi Medicomm,
The first column (AccessionNum1) of the grid in TabPage4, looks to work in the way needed, am I right? If so please check the Form1.resx file that has Chinese text for the other column header text, I think they are supposed to be in Form1.zh-CHT.resx file.
Best regards,
Stanley
ST
Steven Tsai
February 11, 2006 12:47 AM UTC
that''s the bug I want to report, because I added thise chinese character in the CHT.resx not
ST
Steven Tsai
February 11, 2006 12:47 AM UTC
that''s the bug I want to report, because I added thise chinese character in the CHT.resx not
ST
Steven Tsai
February 11, 2006 12:49 AM UTC
that''''s the bug I want to report, because I added thise chinese character in the CHT.resx not in default mode, but the system mess up the chinese character
AD
Administrator
Syncfusion Team
February 12, 2006 09:30 PM UTC
Hi Medicomm,
try to specify the CultureInfo for the column where you want a different culture than the default culture info. In your case you should specify the culture in the Column.Appearance.ColumnHeaderCell.CultureInfo. You need to do this for every column where you want a culture that differs from the default culture.
See this screenshot. It shows the property grid where you need to set the culture.
screen2.zip
If the culture is not specified for the column than it will use the default culture that is specified for the form.
Stefan
AD
Administrator
Syncfusion Team
February 21, 2006 07:19 AM UTC
Thanks Staphen,
but doing this, the data grid will show chinese in English mode.
AD
Administrator
Syncfusion Team
February 22, 2006 07:25 PM UTC
I played a bit with your sample. See attachement here:
Forum_40024(2).zip
I made one column header be english when the chinese language is selected and also one column header be chinese when default language is selected. See the screenshots here:
f40024.zip
When you load the solution you can switch languages. You should check the second column in tabpage4.
Let me know if I misunderstood you and this is not what you are looking for.
Stefan