all groups > asp.net datagrid control > august 2007 >
You're in the

asp.net datagrid control

group:

Edit works, but text box i row is too small


Edit works, but text box i row is too small Joe Stateson
8/29/2007 2:05:15 PM
asp.net datagrid control:
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..
Re: Edit works, but text box i row is too small Joe Stateson
8/30/2007 9:53:39 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/library/stk0x9y3(vs.80).aspx

[quoted text, click to view]
AddThis Social Bookmark Button