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
181
Re-Databind cannot works with object collections (with subcollections)
posted

 I used a UltrawebGrid with List(of ) and works fine if the collection cannot contains subcollections inside.

 

The firts time, the grid  paint the rows and the childs rows very well, but is you remove a item of the collection and call a databing, the grid raise a exception.

 

To make the grid refresh after delete event I used this code..

 

                    Me.UltraWebGrid1.DataSource = Nothing
                    Me.UltraWebGrid1.DataBind()
                    Me.UltraWebGrid1.DataSource = Session("InvoiceData")
                    Me.UltraWebGrid1.DataBind()     'this line raise a exception...

 

I have a full sample with the demo.  You can see two webforms,  when works and when didn´t works..

http://groups.google.co.cr/group/netdevdemos/web/InfragisticsCollections.zip

 

Thanks.