Hi, I would like to know how to get a nested table without using DataSets. For example, setting as DataSource an ArrayList of ArrayList... Would it be possible?
AD
Administrator
Syncfusion Team
April 14, 2005 05:17 PM UTC
Yes. You can do this. Here is a little sample.
http://www.syncfusion.com/Support/user/uploads/GGC_ArrayLists.zip
RO
Roberto Obispo
April 15, 2005 09:39 AM UTC
Thank you very much!
The sample works fine in C#, but I''ve tried to use the same method with my VB.NET project, and It keeps throwing me this exception:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Grouping.RelationDescriptorCollection.EnsureInitialized(Boolean populate)
at Syncfusion.Grouping.RelationDescriptorCollection.get_Version()
at Syncfusion.Grouping.FieldDescriptorCollection.EnsureInitialized(Boolean populate)
at Syncfusion.Grouping.FieldDescriptorCollection.get_Version()
.......
(the original text is very much larger, as you could imagine)
It ocurrs after setting the grid''s DataSource.
Where could be the problem?
Thanks a lot
AD
Administrator
Syncfusion Team
April 15, 2005 10:05 AM UTC
Here is a VB version.
http://www.syncfusion.com/Support/user/uploads/GGC_ArrayLists_VB_c4081367.zip
Depending upon the order of initializing things, the groupinggrid may not have set certain variables. You can force them to be set just by accessing a count or something that triggers the initialzation like:
Dim i as integer = me.grd.TableDescriptor.Columns.Count
This may be the problem you are seeing.