how to wrap the text area on datagrid textbox during editing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

G'day all,

Just wondering if anyone knows how to make the text box become a textarea
when user click on 'edit'

the purpose is that, for content management the user cannot see the text
been typed in as a whole rather just a long dragging text unitl hits the
'update' to see the result.

many thanks :-)
 
Hi

In ItemDataBound event do the following :...

if(e.Item.ItemType == ListItemType.EditItem)
{
((TextBox)e.Item.Cells[5].Controls[0]).TextMode = TextBoxMode.MultiLine;
}

Daniel Roth
MCSD.NET
 
Back
Top