hi.
I think i have approximately the same error.
I have the following code:
"
private void GridTableProcessing(string tableName, string relationName)
{
GridTable gridTable = gridGroupingControl.GetTable(tableName);
if (gridTable != null)
{
RecordsInTableCollection recordsCollection = gridTable.Records;
for (int i = 0; recordsCollection != null && i < recordsCollection.Count; i++)
{
ChildTable childTable = gridTable.Records[i].GetRelatedChildTable(new RelationDescriptor(relationName));
if (childTable != null)
{
gridTable.Records[i].IsExpanded = childTable.Records.Count > 0;
}
}
}
}
"
in my case, Records is not instantiated.
In the application, i have a child table with records. When i put the currsor on a record from the child, i update, them i try to bring again the records, i receive: "'Object reference not set to an instance of an object.'" From what i see, The records is not instantiated.
Hi Suresh,
Based on the provided information we are unable to replicate the reported scenario. We prepared a sample with the provided information and called the GetTableProcessing method in the button click. It works properly as we expected. Could you please provide following details.
Providing these details will help us better understand the issue and work towards finding a solution promptly.
Regards,
Chidanand M.