Ok thanks a lot for your help

 


From: allan ray gagani [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 3:20 AM
To: [EMAIL PROTECTED]
Subject: Re: PSC MSFlexGrid

 

You wrote:

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.SetFocus

end 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]







To unsubscribe, send an email to:
[EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=315388.5529720.6602079.3001176/D=groups/S=:HM/A=2372354/rand=316470599


Yahoo! Groups Links

Reply via email to