Hi,
I would like to bind Rad WPF grid to hierarchical source, let say it is NorthWind DB(Customers, Orders, Orders Details):
1) Using Linq it doesn't work at all:
NorthWindDataContext db = new NorthWindDataContext();
var query = from customer in db.Customers
select customer;
this.radGridView1.AutoGenerateHierarchyFromDataSet = true;
this.radGridView1.ItemsSource = query;
It seems that you dont support Linq
2) Here situation is the same, but when remove row: this.radGridView1.AutoGenerateHierarchyFromDataSet = true; only Customers data appears without hierarchy:
DataSet dataSet = dbHelper.getHierarchicalDataSetUsingSQLConnection();
this.radGridView1.AutoGenerateHierarchyFromDataSet = true;
this.radGridView1.ItemsSource = ((DataTable)dataSet.Tables["Customers"]).DefaultView;
Strange is that this code works with few of your competitors. Any thoughts?
Greg
I would like to bind Rad WPF grid to hierarchical source, let say it is NorthWind DB(Customers, Orders, Orders Details):
1) Using Linq it doesn't work at all:
NorthWindDataContext db = new NorthWindDataContext();
var query = from customer in db.Customers
select customer;
this.radGridView1.AutoGenerateHierarchyFromDataSet = true;
this.radGridView1.ItemsSource = query;
It seems that you dont support Linq
2) Here situation is the same, but when remove row: this.radGridView1.AutoGenerateHierarchyFromDataSet = true; only Customers data appears without hierarchy:
DataSet dataSet = dbHelper.getHierarchicalDataSetUsingSQLConnection();
this.radGridView1.AutoGenerateHierarchyFromDataSet = true;
this.radGridView1.ItemsSource = ((DataTable)dataSet.Tables["Customers"]).DefaultView;
Strange is that this code works with few of your competitors. Any thoughts?
Greg