Click here to Skip to main content
15,910,411 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Guys.
I have grid with 14 columns how can i bind 14 comboboxes to cells. I know how to do that when cell will be resize combobox resize automate same size. I only want that my combobox was above the dgv column. when form will lift will be moved or something.
Thanks.
Posted

1 solution

You could try designing a UserControl.

Add a TableLayoutPanel, add sufficient columns (presumable 14 for the Combos + maybe 2 for margin each side) for your DGV and other controls and two (or more if needed) rows. One for the ComboBoxes and the other for the DGV.

This will at least keep them aligned if moved.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900