Click here to Skip to main content
16,013,322 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create 1 VSFlexGrid which contain comboBox in a particular column for each row and each row's ComboBox have different value.

how is it possible?

can anybody help me?

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Dec-12 1:10am    
Any particular reason to use VB6?
—SA
Urvi Rajyaguru 26-Dec-12 1:33am    
bcz my whole application work under vb
Sergey Alexandrovich Kryukov 26-Dec-12 1:37am    
Really sorry for you...
—SA

1 solution

There is no direct way to do this. However there is one method and here's the logic.

1. Have a FlexGrid, change the cell height to match the combo box's height
2. Drop a CombBox onto the Form and set its border style approriately.
3. Then on click (rowcolchange) detect which cell has been clicked and move the combo box to the corresponding cell.
4. Then when the combo box loses focus then write the text in the combo box into the corresponding cell.

Please go with below link :)

[^]
 
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