Bibek

Hello i am developing a windows application using C#.net.I need to bind the datagridview on one column of the datagridview.is it possible

if no what will be the solution

Thank you.



Re: Windows Forms Data Controls and Databinding Datagridview on datagridview

Ken Tucker

Sorry I do not understand what you are asking




Re: Windows Forms Data Controls and Databinding Datagridview on datagridview

Zhi-Xin Ye - MSFT

You want to display a master/detail relationship




Re: Windows Forms Data Controls and Databinding Datagridview on datagridview

Bibek

What i am saying is i want first to bind the data on one datagridview and bind that datagridview on a column of another datagridview.

for eg. I want to display data like this on datagridview.

Weight.                                   Product Combination

12                                           productid                          quantity

                                                  2                                              2

                                                  4                                              3

                                                  3                                               4

13                                            productid                          quantity

                                                  2                                               2                                                 

                                                  3                                               4         

14                                          productid                          quantity

                                                  2                                             4

                                                  4                                              6

                                                  3                                               4         





Re: Windows Forms Data Controls and Databinding Datagridview on datagridview

Gavin Jin - MSFT

I think you can also use some expandable datagridview

look at this article ,I hope it helps

http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx






Re: Windows Forms Data Controls and Databinding Datagridview on datagridview

Zhi-Xin Ye - MSFT

It's impossible to achieve this kind of effect by directly binding, you have to custom paint the DataGridView.




Re: Windows Forms Data Controls and Databinding Datagridview on datagridview

Bibek

Yes i achieved this using master/detail relationships