Hi, I have two GroupingGrids in the same form.
The first grid works fine, it''s a simple one, without nested data, and with one conditional format.
The second one is a bit more complex. Its DataSource is an ArrayList of ArrayList, and has one conditional format, and one Relation in order to link the first ArrayList with the second one.
As I said, the first one works fine, but the second one crashes ("Object reference not set to an instance of an object."). The initialization code is almost the same in both grids, but the second one has also this code after the initialization code:
Dim myRel As New GridRelationDescriptor()
myRel.RelationKind = RelationKind.UniformChildList
myRel.MappingName = "LinkField"
Without this fragment of code, both grids are shown perfectly (although the second one without the nested data).
If it helps, I have almost the same code at other proyect, but with only one grid, and works fine, with nested data and all the stuff.
Any clue of what could be happening? I''ve tried moving the relationship code to other points of the initialization, but It keeps crashing the same way. Could it be a problem with the CurrencyManager trying to manage the data for both grids?
Thank you very much!
ADAdministrator Syncfusion Team April 21, 2005 11:51 AM
Can you modify the sample in this thread to show this problem?
RORoberto ObispoApril 21, 2005 12:20 PM
I''ve modified the sample coding some dummy classes, and it works fine and smooth!
I''m now sure: I have a problem with my data sources. In the modified sample, the datasources were completely sepparated. In my original project, they share a common source, in some ways.
Thank you very much! I''m going to keep on working on that way :)
Note: I''ve attached the modified sample.