|
-
May 22nd, 2001, 03:55 PM
#1
Thread Starter
Addicted Member
msflexgrid directly writing on the cell,resize cell auto?
Hello,
First:***** MSFlexgrid control:when I click the control , I want to access to grid and directly write on selected cell , not to use with inpubox or textbox...etc.How?
Second:*****How can I let the msflexgrid control resize its cell width according to text length?
Thanks......
Last edited by oktay; May 24th, 2001 at 04:58 AM.
-
May 24th, 2001, 05:00 AM
#2
Thread Starter
Addicted Member
It must be simple.How can I do it?
-
May 24th, 2001, 07:55 AM
#3
Fanatic Member
I don't think you can do it with MSFlexGrid. You'll have to get a different Grid control to be able to edit directly in a cell.
Try TrueDBGrid - that's quite neat. It's by ComponentOne - www.componentone.com
-
May 24th, 2001, 04:16 PM
#4
Member
Flex grid cells are read only so you cannot edit them without the old floating textbox.
As for auto sizing columns it's not a built in feature but is easy to achieve, you need to use the TextWidth method of a form or picture box to return the length of the text, and then set your column width accordingly (allowing a bit of extra space for the cell padding).
When doing this ensure that the scale mode of your form/picturebox & grid is set the same.
Tryster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|