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.RowsScreenProperty.ARG_Title = row.Cells(0).ValueNext End Sub
Use the UltraGridCell.GetText method.
Great Brian Fallon! That Works.
Thanks