NaGy <[EMAIL PROTECTED]> wrote:
Hello, how can I add text box or combo box or check box to certain column in
MSFlexGrid?
MY ANSWER:Man, put that combox box or that textbox (set it's appearance property to flat in order to appear that to be a cell-look alike). Set it's visible property to false. Put that inside your grid just be sure it's on top. Now what grid event you would like to trigger this positioning and resizing? Key_Down? then add this code:
with flexgrid
txtCellEditor.Visible = True
txtCellEditor.Move .Left + .CellLeft, .Top + .CellTop, .CellWidth, .CellHeight
txtCellEditor.Text = .TextMatrix(.RowSel, .ColSel)
txtCellEditor.SetFocusend with
1st line....set it to true first
2nd line...move it to the position of the cell using the grid's cell property such as it's left, top and it's width.
3rd line...put the value of the cell in the text..
4th...sets its focus for user editing
Does this solve your problem? Ask again if you can't figure this out. Happy Coding.
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
To unsubscribe, send an email to:
[EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/PlanetSourceCode/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
