D
Dmitry Sazonov
I have 2 tables:
Customers (
Cust_id int,
Cust_name text,
Type_id int )
Customer_Types (
Type_id int,
Type_name text )
I have loaded them into DataSet. When I can bind DataGrid as:
DataView view = new DataView ( ds.Tables["Customers"] );
dataGrid1.DataSource = view;
But I need to bind query to DataGrid (or to ListView). SQL like that:
"SELECT Cust_id, Cust_name, Type_name FROM Customers
INNER JOIN Customer_Types ON Customer_Types.Type_id = Customers.Type_id"
I can not create DataView on SQL query. I can not bind Grid to anything else
than DataView? I can not bind ListView to anything.
Please, help. Sorry for dumb question.
Customers (
Cust_id int,
Cust_name text,
Type_id int )
Customer_Types (
Type_id int,
Type_name text )
I have loaded them into DataSet. When I can bind DataGrid as:
DataView view = new DataView ( ds.Tables["Customers"] );
dataGrid1.DataSource = view;
But I need to bind query to DataGrid (or to ListView). SQL like that:
"SELECT Cust_id, Cust_name, Type_name FROM Customers
INNER JOIN Customer_Types ON Customer_Types.Type_id = Customers.Type_id"
I can not create DataView on SQL query. I can not bind Grid to anything else
than DataView? I can not bind ListView to anything.
Please, help. Sorry for dumb question.