B
Ben Arthur
Hi All,
I have a datagrid with one column as editable, and on edit command, the
column shows a textbox where users can make changes.However, my data for
that column is expected to be a couple of lines evyertime, and so i
would prefer to display a text area or something more
approproate...however i m unable to do that and get an error if i change
the textbox to textarea in my code...Any suggestions?
Thanks in advance,
Ben
P.S
the code inside the edit command:
int Id= (int)datagrid1.DataKeys[e.Item.ItemIndex];
string newMessage;
TextBox aBox= new TextBox();
aBox = (TextBox)(e.Item.Cells[5].Controls[0]);
newMessage = aBox.Text;
I have a datagrid with one column as editable, and on edit command, the
column shows a textbox where users can make changes.However, my data for
that column is expected to be a couple of lines evyertime, and so i
would prefer to display a text area or something more
approproate...however i m unable to do that and get an error if i change
the textbox to textarea in my code...Any suggestions?
Thanks in advance,
Ben
P.S
the code inside the edit command:
int Id= (int)datagrid1.DataKeys[e.Item.ItemIndex];
string newMessage;
TextBox aBox= new TextBox();
aBox = (TextBox)(e.Item.Cells[5].Controls[0]);
newMessage = aBox.Text;