Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB
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 25-Dec-12 19:04pm
Comments
Sergey Alexandrovich Kryukov at 26-Dec-12 1:10am
   
Any particular reason to use VB6?
—SA
Urvi Rajyaguru at 26-Dec-12 1:33am
   
bcz my whole application work under vb
Sergey Alexandrovich Kryukov at 26-Dec-12 1:37am
   
Really sorry for you...
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 Smile | :)

[^]
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 403
1 Sergey Alexandrovich Kryukov 227
2 Richard Deeming 180
3 ChauhanAjay 170
4 Snehasish_Nandy 161
0 Sergey Alexandrovich Kryukov 6,367
1 OriginalGriff 5,588
2 CPallini 2,473
3 Richard MacCutchan 1,627
4 Abhinav S 1,530


Advertise | Privacy | Mobile
Web01 | 2.8.140821.2 | Last Updated 26 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100