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
20
Adding new row problems
posted

I have adding a new row into the UltraWebGrid using following:

FieldGrid1.Bands(0).Columns(2).DefaultValue = "123"

but some how it never display on the grid.

Any problem ?

  • 380
    Offline posted

    You are setting the default content of the cells in the third column to "123".

     If you want to add a row you must tell the grid to add a row like:
     FieldGrid1.Rows.Add(New Infragistics.WebUI.UltraWebGrid.UltraGridRow())

    To access the first cell in the first row looks like this: 
    FieldGrid1.Rows(0).Cells(0).Value = "123"

    You should really use the documentation to learn the basics about the object model.