This is a migrated thread and some comments may be shown as answers.

DataSet, GridView DataBinding to Parent Information

1 Answer 21 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 11 Jun 2012, 12:55 PM

Hi,

I have setup a dataSet with 3 tables Locations,Customers and Orders. I have setup 3 relations "Locations to Customers" , "Locations to Orders" and "Customers to Orders"

I have a form that has two GridViews one to show All the Customers and one to show the Selected Customers Orders.

I have done this by: 

MainForm.DataSource = FormData;
MainForm.DataMember = "Customers";
 
SubForm.DataSource = FormData;
SubForm.DataMember = "Customers.Customers_Orders";


Is there anyway I can bind a column to the Locations Description from the Locations table via the  "Locations to Customers"/"Locations to Orders" in the relative grids? 

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 14 Jun 2012, 08:28 AM
Hello David,

Thank you for writing.

You can use the GridViewComboBoxColumn to achieve the desired behavior. Simply bind the column to your Locations data. More information about GridViewComboBoxColumn and binding you can find in our online documentation.

I hope this helps. Feel free to ask if you have any additional questions. 

All the best, Julian Benkov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
David
Top achievements
Rank 2
Answers by
Julian Benkov
Telerik team
Share this question
or