i will give a brief description on my scenario. i have a dataset, containing 2 datatables. there is a relation binding the 2 tables. the gridgroupingcontrol.datasource is assigned to the dataset. i was able to get the view i want during the first datasource specification. however, when i assign the control to another dataset, i was given the error message saying that the relationship contain error.
i figured that the error could be caused by the control attempting to draw the previous dataset when a new dataset is assigned to it. thus the relation failed. i was wondering how should i get around this situation.
thanks and regards.
ADAdministrator Syncfusion Team May 4, 2004 01:58 PM
You can try resetting the relations. You could also reset the DataMember.
this.gridGroupingControl1.DataSource = newDataSource;
this.gridGroupingControl1.DataMember = ""; //or whatever else is appropriate
LKLance KohMay 4, 2004 09:45 PM
i tried, but nope, it did not work. and i am still facing the same problem...
ADAdministrator Syncfusion Team May 5, 2004 12:18 AM
Instead of ResetRelations, try
This seems to work in this sample.
LKLance KohMay 5, 2004 09:35 AM
looks cool! i will explore into that area. thanks!