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
110
Problems with Saving New Rows
posted

I am using UltraWebGrid.  I am allowing Add, Update and Delete (of New Rows) on the Grid.  These all work fine.
I am saving the Added Rows on a submit.  See Code below.  Periodically, when I go to iterate through these recently added rows (For Each row in Me.UGBilling.Rows). . Rows.Count=0.  This doesn't happen all the time.  The update and delete work fine.  Could I be missing a setting?

Example:

Dim row As UltraGridRow

For Each row In Me.UGBilling.Rows
    
Select Case row.DataChanged
         
Case DataChanged.Added
               'Add Row to Database
          Case DataChanged.Modified
               'Update Row to Database

          Case DataChanged.Deleted
              
'Delete Row from Database

     End Select

Next

Thanks,

Leah

Parents
  • 45
    posted

     I have a similar problem:

    There are a webform with a UltraWebGrid which allows Insert, Update and Delete rows on Client Side. Sometimes the grid have extra empty row. I think, It happen when a row is deleted on the Client.

    Example:

    I have a Grid with 4 rows. If I do a postback Me.uwgExample.Rows.Count is 4. Then if I delete a row and do a postback Me.uwgExample.Rows.Count is11, but from Me.uwgExample.Rows(4) to Me.uwgExample.Rows(11) all Cells.Text are nothing.

    I don't know what to do.

    Thanks,

    u4s

Reply Children