Arabic (Multi Language) display in Datagrid CF 2

khuishaque

New member
Joined
Feb 15, 2007
Messages
4
Programming Experience
3-5
Hello dear all,

I had an issue to show arabic information in datagrid cell, arabic info is displaying correctly in other controls of CF 2 for Pocket PC.
I am using SqlCeDataAdapter to Fill the Dataset and/or Datatable, and assigning to datasource of Datagrid.

If I click datagrid row, I check value in textboxes it is showing arabic info.
But in the datagrid it is showing '(null)' or Empty cell.

I am customizing the datagrid for images to display in it beside arabic info.
I am also setting localized to true for tht Form and also set the FormatInfo property of cell to represent Arabic Culture Info as follow:

VB.NET:
Dim SACultureInfo As New System.Globalization.CultureInfo(&H401) 
Dim dgTableStyle As DataGridTableStyle = newDataGridTableStyle() 
Dim imgColStyle As GridCustColImg = newGridCustColImg() 
imgColStyle.HeaderText = "" 
imgColStyle.MappingName = customerTable.Columns(0).ColumnName 
imgColStyle.ImageList = custImg 
dgTableStyle.GridColumnStyles.Add(imgColStyle) 

Dim col1 As DataGridTextBoxColumn = newDataGridTextBoxColumn() 
col1.HeaderText = "Code" 
col1.MappingName = customerTable.Columns(1).ColumnName 
col1.Width = 40 
dgTableStyle.GridColumnStyles.Add(col1) 

Dim col2 As DataGridTextBoxColumn = newDataGridTextBoxColumn() 
col2.HeaderText = "Name" 
col2.FormatInfo = SACultureInfo 
col2.MappingName = customerTable.Columns(2).ColumnName 
col2.Width = 175 
dgTableStyle.GridColumnStyles.Add(col2) 
dgTableStyle.MappingName = customerTable.TableName 
dgRoute_Planner.TableStyles.Add(dgTableStyle)

What more I should suppose to do? Or what is right way to display multi language info in datagrid (e.g. Arabic info)?

Please Help!!
 
Back
Top