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:
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
NextThanks,Leah
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
Hello,
At this point I believe it is best to do two things:
1) Upgrade to the latest hotfix and see if this helps.
2) Contact Developer Support directly, since I do not believe that this is something that we can easily address in public forums. Developer Support can be reached via the following link:
http://es.infragistics.com/Support/#Overview
You might also want to consider using the UpdateRow event (or UpdateRowBatch event) to handle added and modified rows. This event will be raised once for every row that was modified (even if it's a new row) since the last postback. Likewise, use DeleteRow (or DeleteRowBatch) to handle deleted rows.
By doing this, you don't have to loop through all the rows in your grid, and can instead process the updates by using the direct reference to each added/updated/deleted row.
If you still need more assistance, then I echo Rumen's suggestion that you submit a support request so that we can investigate your issue more in-depth.