Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
769
urgent! How to get the value of a templatedcolumns on a submit button event
posted

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