Hello all,
I've been trying to data bind a RadGridView to a DataSet in order to achieve hierarchical display (can I do this with a BindingList<> ?), and as soon as I try to change the DataSource and assign to it a null value or a List<> value I get this exception:
System.ArgumentException was caught
Message="The relation is not parented to the table to which this DataView points."
the code is:
(radGridView1.DataSource as DataSet).Clear();
radGridView1.AutoGenerateHierarchyFromDataSet = false;
radGridView1.DataSource = null; // or radGridView1.DataSource = new // List<MyClass>();
radGridView1.DataSource = lines;
Is it simply impossible?
I've been trying to data bind a RadGridView to a DataSet in order to achieve hierarchical display (can I do this with a BindingList<> ?), and as soon as I try to change the DataSource and assign to it a null value or a List<> value I get this exception:
System.ArgumentException was caught
Message="The relation is not parented to the table to which this DataView points."
the code is:
(radGridView1.DataSource as DataSet).Clear();
radGridView1.AutoGenerateHierarchyFromDataSet = false;
radGridView1.DataSource = null; // or radGridView1.DataSource = new // List<MyClass>();
radGridView1.DataSource = lines;
Is it simply impossible?