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.
What version of the NetAdvantage for .NET toolset are you using? Are you using the latest hot fix?
If the issue isn't already resolved in the latest hot fix, then this may take more in-depth research. You already have a sample that reproduces this issue, so I suggest you submit a support request and attach your sample. A Developer Support Engineer will research this issue using your sample and will work with you to resolve it.
Thanks for your answer.
I used latest version and latest hotfix. I used VB 2008 + 3.5 and the control is Infragistics35.Web.v8.3, Version=8.3.20083.2021
Yes I sent a support request and the sample with the demostration, but I don´t receive a answer. And this bug is very important, because the applications requires this feature. Us only use collections, not dataset.
This is the case number CAS-14720-FNGGWJ. Please if you know news about the case, please tell me.
The developer that took the case is Ajay,Developer Support Engineer
You can see the demostration here.
Thanks for your help.
Thanks for the update, and for mentioning your case number. We're still looking into this issue, based on what progress I see on the case.
Hi, I downloaded the code from your site , and I debugged the source code of UltraWebGrid component( Infragistics35.WebUI.UltraWebGrid2.v8.3 HotFix 2021)The exception was raised in the line 1532 of the class Infragistics.WebUI.UltraWebGrid.DBBindingif (!(datasource is DataView) && currentBand.Index == 0)because the currentBand is nullThis happened when the grid tried to create the childs rows of the first row.I tried to fix the problem by my self and I was discovered that your component cannot clean the bands and other structures after that assign a null value to datasource and raise a databind metohod. And not regenerate the new bands after assign the new datasource. This was happened when I used collections with subcollections members.The solutions was very easy. With the same code, that I sent before, I called a bands clear method of DisplayLayout of the grid. If Me.IsPostBack Then Try Me.UltraWebGrid1.DataSource = Nothing Me.UltraWebGrid1.DataBind() Me.UltraWebGrid1.DisplayLayout.Bands.Clear() Me.UltraWebGrid1.DataSource = Session("InvoiceData") Me.UltraWebGrid1.DataBind() Catch ex As Exception Me.lblMessage.Text = ex.Message End Try End IfWith this code my program works very well for the moment.Thanks for all.Javier.solisaj@bccr.fi.crMCP,MCTS,MCPD