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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top