HighTechTalks DotNet Forums  

Edit works, but text box i row is too small

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss Edit works, but text box i row is too small in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Joe Stateson
 
Posts: n/a

Default Edit works, but text box i row is too small - 08-29-2007 , 03:05 PM






I have been using the "Edit" command button in a gridview to edit fields in
a table. On field, Description, is a variable character string and it only
shows up in a single un-wrapped text box (as do all the other fields in the
row). It might be up to 500 words long and I need a large textbox to allow
it to be edited.

When the row is being displayed everything looks just fine. The record
might be 4 inches high and all text is visible. The instant I click on
"Edit" that record is reduce to a single character height. I can always get
rid of the "Edit" and pop up a detail view and an Apply button to get the
information back into the grid. I was wondering if there is a quick fix to
the editable box to make it bigger.

On "Item Style" I have wrap set to true, but that seems to do nothing when
in edit mode.

...thanks..


Reply With Quote
  #2  
Old   
Joe Stateson
 
Posts: n/a

Default Re: Edit works, but text box i row is too small - 08-30-2007 , 10:53 AM






Solved - replaced column with a templete and set the textbox to multiline
and #rows big enough to be useful for editing. Found this reference which
got me started:

http://msdn2.microsoft.com/en-us/lib...y3(vs.80).aspx

"Joe Stateson" <jstateson (AT) swri (DOT) edu> wrote

Quote:
I have been using the "Edit" command button in a gridview to edit fields in
a table. On field, Description, is a variable character string and it only
shows up in a single un-wrapped text box (as do all the other fields in the
row). It might be up to 500 words long and I need a large textbox to allow
it to be edited.

When the row is being displayed everything looks just fine. The record
might be 4 inches high and all text is visible. The instant I click on
"Edit" that record is reduce to a single character height. I can always
get rid of the "Edit" and pop up a detail view and an Apply button to get
the information back into the grid. I was wondering if there is a quick
fix to the editable box to make it bigger.

On "Item Style" I have wrap set to true, but that seems to do nothing when
in edit mode.

..thanks..



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.