shellei
asked on
wordwrap in flexgrid
Hi All!
I'm having a problem with the wordwrap property in flexgrid. I have a flexgrid containing 2 columns and X number of rows, depending on how many questions I am feeding in from a text file. Column 1 is a fixed column and displays the a question per row. I have embedded a textbox in column 2.
I have already set...
AllowUserResizing = 2-flexResizeRows
WordWrap = True
I am able to resize my rows during runtime, but I don't want to do this. I want to have the rows already resized based on the length of characters per row when the grid appears in runtime.
Thanks all!
shellei
I'm having a problem with the wordwrap property in flexgrid. I have a flexgrid containing 2 columns and X number of rows, depending on how many questions I am feeding in from a text file. Column 1 is a fixed column and displays the a question per row. I have embedded a textbox in column 2.
I have already set...
AllowUserResizing = 2-flexResizeRows
WordWrap = True
I am able to resize my rows during runtime, but I don't want to do this. I want to have the rows already resized based on the length of characters per row when the grid appears in runtime.
Thanks all!
shellei
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>I hope that has cleared things up.
nope i still dont understand what you are trying to do
however here is the 'general' system to make rows/columns resize automaticly according to the text in a cell:
on your form place a label control
label.autosize=true
label.wordwrap=true
this label may be visible=false
now before placing text in a cell put it in this label, and the label will autosize to its contents
that is its widht will be the width of the longest word in the text, if now you increase its width to the width of a column it will adjust its height to accommodate the text,
and now just set the grids rowheight of that row to the label.height
since i still dont understand fully what you want to do, you may have to tweak it a bit to serve your needs
however if you give me your e-mail i'll send you a program showing how you can make an editable flexgrid that automaticly resizes its rows to accomodate what is typed into it while the user is typing into it
nope i still dont understand what you are trying to do
however here is the 'general' system to make rows/columns resize automaticly according to the text in a cell:
on your form place a label control
label.autosize=true
label.wordwrap=true
this label may be visible=false
now before placing text in a cell put it in this label, and the label will autosize to its contents
that is its widht will be the width of the longest word in the text, if now you increase its width to the width of a column it will adjust its height to accommodate the text,
and now just set the grids rowheight of that row to the label.height
since i still dont understand fully what you want to do, you may have to tweak it a bit to serve your needs
however if you give me your e-mail i'll send you a program showing how you can make an editable flexgrid that automaticly resizes its rows to accomodate what is typed into it while the user is typing into it
Hi shellei,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:
Accept pierrecampe's comment(s) as an answer.
shellei, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you. DO NOT accept this comment as an answer.
EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:
Accept pierrecampe's comment(s) as an answer.
shellei, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you. DO NOT accept this comment as an answer.
EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
Per recommendation, force-accepted.
Netminder
EE Admin
Netminder
EE Admin
ASKER
Thanks!
shellei