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
1070
ultrawebgrid - cell value is not displayed in the grid
posted

I can get the cell value in code file. but  cell value is not displayed in the grid.

Refer tge below code

 

Protected Sub UGrid_ClickCellButton(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.CellEventArgs) Handles UGrid.ClickCellButton Dim cellVal1 As Object Dim cellVal2 As Object

cellVal1 = UGrid.DisplayLayout.ActiveRow.Cells(1).Value Dim ActiveRow As Integer ActiveRow = Val(UGrid.DisplayLayout.ActiveRow.Index) Dim celltxt As String Dim celldata As String Dim Category As String Dim SubCategory As String Category = UGrid.DisplayLayout.ActiveRow.Cells(1).Value SubCategory = UGrid.DisplayLayout.ActiveRow.Cells(2).Value celltxt = UGrid.DisplayLayout.ActiveRow.Cells(3).Value celldata = UGrid.DisplayLayout.ActiveRow.Cells(4).Value If e.Cell.Column.Key = "Add" Then UGrid.DisplayLayout.Bands(0).AddNew() UGrid.Rows(UGrid.Rows.Count - 1).Cells(0).Value = "+" UGrid.Rows(UGrid.Rows.Count - 1).Cells(1).Value = Category UGrid.Rows(UGrid.Rows.Count - 1).Cells(2).Value = SubCategory UGrid.Rows(UGrid.Rows.Count - 1).Cells(3).Value = celltxt UGrid.Rows(UGrid.Rows.Count - 1).Cells(4).Value = celldata UGrid.DisplayLayout.Bands(0).AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes

End If