Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

how to change one column data change....

example: column value is "False" It appear on Arbic in "جهاز"

it is True = " الملحقات " show on this one....
Posted
Comments
Thanks7872 28-Oct-13 1:51am    
Not at all clear what you want from us. Sorry.
akhil.krish 28-Oct-13 1:59am    
Thanks for reply "Rohan Leuva"

Private Sub Draw_Grid()
Dim I As Integer

MsGrid.ColWidth(0) = 800
MsGrid.ColWidth(1) = 1200
MsGrid.ColWidth(2) = 1500
MsGrid.ColWidth(3) = 1500
MsGrid.ColWidth(4) = 1000
MsGrid.ColWidth(5) = 1200
MsGrid.ColWidth(6) = 2500
MsGrid.ColWidth(7) = 3000
MsGrid.ColWidth(8) = 3000

MsGrid.TextMatrix(0, 0) = "رقم البلاغ"
MsGrid.TextMatrix(0, 1) = "رقم الجهاز"
MsGrid.TextMatrix(0, 2) = "الرقم االتسلسلي"
MsGrid.TextMatrix(0, 3) = "نوع الصيانة"
MsGrid.TextMatrix(0, 4) = "نوع الجهاز"
MsGrid.TextMatrix(0, 5) = "التاريخ الصيانة"
MsGrid.TextMatrix(0, 6) = "اسم الفني"
MsGrid.TextMatrix(0, 7) = "ملاحظات"
MsGrid.TextMatrix(0, 8) = "وصف المشكلة"



For I = 0 To MsGrid.Cols - 1
MsGrid.FixedAlignment(I) = 3
MsGrid.ColAlignment(I) = 0
Next I

For I = 1 To RCount
If MsGrid.TextMatrix(I, 4) = "True" Then MsGrid.TextMatrix(I, 4) = "الملحقات"
If MsGrid.TextMatrix(I, 4) = "False" Then MsGrid.TextMatrix(I, 4) = "جهاز"
Next


This is vb code... same application iam developing in asp.net..

grid view data FLG_TYPE value is False... convert to Arabic language "جهاز"



all i change columns name in GridView UI setting...

If MsGrid.TextMatrix(I, 4) = "True" Then MsGrid.TextMatrix(I, 4) = "الملحقات"
If MsGrid.TextMatrix(I, 4) = "False" Then MsGrid.TextMatrix(I, 4) = "جهاز"
both 2 lines how to write on code behind....

1 solution

Here solution is
VB
For i = 0 To MsGrid.Rows.Count - 1
  If MsGrid.Rows(i).Cells(4).Value = True Then
    MsGrid.Rows(i).Cells(4).Value = "الملحقات"
  Else
    MsGrid.Rows(i).Cells(4).Value = "جهاز"
  End If
Next


Mark as solution, if this material helps you in any way...
 
Share this answer
 
Comments
akhil.krish 28-Oct-13 6:44am    
Thanks for reply ashok..

Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
BindView()
GridView1.DataBind()
End Sub


Sub BindView()
Try
Dim flgsent As Boolean = False
Dim ObjAMSMaintainSearch As clsAMSRegMaintance = New clsAMSRegMaintance

If rdcACC.Checked = True Then
If ObjAMSMaintainSearch.FLG_TYPE = "True" Then ObjAMSMaintainSearch.FLG_TYPE = "الملحقات"
flgsent = True
ElseIf rdcDevice.Checked = True Then
If ObjAMSMaintainSearch.FLG_TYPE = "False" Then ObjAMSMaintainSearch.FLG_TYPE = "جهاز"

flgsent = True
Else

End If

If ChkRmflg.Checked = True Then
ObjAMSMaintainSearch.RMFLG = True
Else
ObjAMSMaintainSearch.RMFLG = False
End If



ObjAMSMaintainSearch.MTYPE = 0
'If txtRMNO.Text <> "" Then
' ObjAMSMaintainSearch.RMNO = Convert.ToInt64(Trim(txtRMNO.Text))
'End If
If txtRMNO.Text <> "" Then
Dim rmno As Int64 = Int64.Parse(Trim(txtRMNO.Text))
ObjAMSMaintainSearch.RMNO = rmno
End If

If txtOrderNum.Text <> "" Then
ObjAMSMaintainSearch.MORDERNO = Convert.ToInt64(Trim(txtOrderNum.Text))
End If
If txtDevNum.Text <> "" Then
ObjAMSMaintainSearch.DEVICE_NO = Trim(txtDevNum.Text)
End If
ObjAMSMaintainSearch.SERIAL_NO = Trim(txtSerialNum.Text)
ObjAMSMaintainSearch.PONO = Trim(txtPONO.Text)
ObjAMSMaintainSearch.DEPCODE = ddlDept.SelectedValue
ObjAMSMaintainSearch.MODELCODE = ddlModel.SelectedValue
ObjAMSMaintainSearch.DEVCODE = ddlDeviceType.SelectedValue
ObjAMSMaintainSearch.PROBLEMDESC = Trim(txtPrbdesc.Text)
ObjAMSMaintainSearch.INSIDE_EMP = Trim(txtInSideMEmp.Text)
ObjAMSMaintainSearch.FRECHDATE = Trim(txtFRecHDate.Text)
ObjAMSMaintainSearch.TRECHDATE = Trim(txtTRecHDate.Text)
ObjAMSMaintainSearch.FPURCHASEHDATE = Trim(txtFPuchaseHDate.Text)
ObjAMSMaintainSearch.TPURCHASEHDATE = Trim(txtTPuchaseHDate.Text)
ObjAMSMaintainSearch.FSENDOUTHDATE = Trim(txtFSendOutHDate.Text)
ObjAMSMaintainSearch.TSENDOUTHDATE = Trim(txtTSendOutHDate.Text)

Dim ds As DataSet = clsAMSRegMaintance.GetAMSInMainSearchbyQry(ObjAMSMaintainSearch)

GridView1.DataSource = ds
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub

this is my vb.net code

where to write...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900