Hello all,
I have an ultrawebgrid with 5 columns:
col1="CustomerID",
col2="CustomerName",
col3="CustomerOrder#" where this column is a templatedcolumn with an <asp:dropdownlist..
col4="OrderCategory" where this column is a templatedcolumn with an <asp:TextBox..., categories are 1, 2, ..10 where the user can enter in a number from 1 to 10.
col5="Status"
I would like to know how to grab the values from an <asp:TextBox AND from the <asp:Dropdownlist where these two are inside a templatedcolumn for the ultrawebgrid. Base on the explaination above, I need to grab the value from col3 and col4.
I tried ultrawebgrid1.Rows[0].Cells[3].Value.ToString(); but it doesn't work for the templatedcolumn. It works for the non-templatedcolumn.
Please help me, this is urgent!
Thanks in advance!
hs2
How about casting the TextBox;
TextBox txt = (Text)FindControl("Your grid");
txt.Text should give you the value..
HTH