Probelm with Grid Grouping Control.TopLevelTable

Hello,
I am having a problem with GG,when I use GG.topLevelTable.Rows to loop through the GG ,I get the Exception message :System.NullReferenceException,even if the data is correctly loaded in the GG,when I use the watch window I observe that GGC1.TableDescriptor have an undefined Value.
How to fix this problem?
Note that this exception is generated when I click in Linkbutton
Thank you in advance

2 Replies

VA Valli Syncfusion Team July 3, 2007 11:30 AM UTC

Hi Yacinus,

1) The System.NullReferenceException gets raised when the control hierarchy is not created and the TopLevelTable is null.

Please use the below code snippet which will ensure the control-hierarchy gets created and TopLevelTable is non-null.

this.GridGroupingControl1.CreateControlHierarchy();

Let us if the above code helps you to resolve the issue.

2) Regarding the exception is generated when I Click in the Link button:

If still the issue persists could you please attach us a sample which will be more helpful to us to solve it.

Regards,
Valli


YY Yarius Yacinus July 3, 2007 01:14 PM UTC

Hi,
thank you for your answer,the problem was fixed
regards

Yacinus

Loader.
Up arrow icon