Print Page | Close Window

how can i bind different table's information into a Datagridview?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1264
Printed Date: 16-Apr-2025 at 7:31am


Topic: how can i bind different table's information into a Datagridview?
Posted By: monkeyking
Subject: how can i bind different table's information into a Datagridview?
Date Posted: 19-May-2009 at 5:57am
i can see that by using the databinding tool (controlbindingmanager; datagridviewbindingmanager) provided by devforce, i can select different properties in a same table, but how can i select the properties in different tables?

for example, in customer table, i can select Age, salary..., now i want to select some properties in sales table to be displayed in the same datagridview, how can i do that?(by using the designer)



Replies:
Posted By: davidklitzke
Date Posted: 19-May-2009 at 10:03am
If you have a 1-1 relationship between one table and another, you can use a "custom property" to create an extra column in the grid.  If the relationship is 1-many, the usual option  create a separate grid for each table.Another option is to use a "hierarchical grid" (grid within a grid).  We have an example of this in DevForce Classic.  



Print Page | Close Window