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

Parents
  • 49378
    Suggested Answer
    posted

    Hi DayanaArul,

    Your issue is very likely caused by the Text property of row cells not being set as the UltraWebGrid displays the value of the Text property for each cell.

    Can you ensure that the value of the Text property is set to the value of the Value property ?

    Please tell me if this helps.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

Reply Children
No Data