Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
How to get displaytext value from valuelist in row.Cells(0).Value
posted

I'm using valuelist with Id (row("GangLaborId")) and DisplayText(row("Title")). But when I try to fetch that from row.Cells(0).Value I'm getting Id value, instead of displaytext. So how to fetch displaytext 

Private Sub ugSubMain_InitializeLayout(sender As Object, e As InitializeLayoutEventArgs) Handles ugSubMain.InitializeLayout

Dim v1 As ValueList
If (Not e.Layout.ValueLists.Exists("MyValueList1")) Then
v1 = e.Layout.ValueLists.Add("MyValueList1")
If dtGangLaborTitle.Rows.Count > 0 Then
For Each row As DataRow In dtGangLaborTitle.Rows
v1.ValueListItems.Add(row("GangLaborId"), row("Title"))

Next
End If
End If
e.Layout.Bands(0).Columns("Title").ValueList = e.Layout.ValueLists("MyValueList1")
e.Layout.Bands(0).Columns("Title").Style = UltraWinGrid.ColumnStyle.DropDownList

End Sub


Private Sub UltraButtonSave1_Click(sender As Object, e As EventArgs) Handles UltraButtonSave1.Click


Dim row As Infragistics.Win.UltraWinGrid.UltraGridRow
For Each row In ugSubMain.Rows
ScreenProperty.ARG_Title = row.Cells(0).Value
Next
End Sub

Parents
No Data
Reply Children