ADAdministrator Syncfusion Team April 14, 2005 12:17 PM
Yes. You can do this. Here is a little sample.
RORoberto ObispoApril 15, 2005 04:39 AM
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.FieldDescriptorCollection.EnsureInitialized(Boolean populate)
(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
ADAdministrator Syncfusion Team April 15, 2005 05:05 AM
Here is a VB version.
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.