this:
I want to create a data grid view from another data grid view.
The DGV1 has 2 columns and n rows(text box).
I want to make DGV2 that its columns number are equal to DGV1'rows+2
2 of them text box and the rest of them are combobBox.
The header of DGV2's columns should be the rows of DGV1.
How can I code this?
I'll send a pic for more understanding.
Thanks
Is this WPF or Web? with WPF you can use databinding so the elements from the List in DGV1 are used to populate DGV2 columns. You just make the list an observable and then it gets populated automatically.
Обсуждают сегодня