By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,002 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,002 IT Pros & Developers. It's quick & easy.

Datagrid Templete Value

P: n/a
MDB
I have a datagrid with an drop down list item templete and was wondering how
I get the value of this? The datagrid is called dgProducts and the drop
down list is called ddQty.

Thanks in Advance
MDB
Mar 22 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
In what event do you want to get the value?

"MDB" wrote:
I have a datagrid with an drop down list item templete and was wondering how
I get the value of this? The datagrid is called dgProducts and the drop
down list is called ddQty.

Thanks in Advance
MDB

Mar 22 '06 #2

P: n/a
MDB
On the page post back or when the value is changed? Thank you.
"coolhotrod" <co********@nospam.nospam> wrote in message
news:44**********************************@microsof t.com...
In what event do you want to get the value?

"MDB" wrote:
I have a datagrid with an drop down list item templete and was wondering
how
I get the value of this? The datagrid is called dgProducts and the drop
down list is called ddQty.

Thanks in Advance
MDB

Mar 22 '06 #3

P: n/a
MDB
I figured it out, thanks for looking....
System.Web.UI.WebControls.DropDownList dd;

dd =
(System.Web.UI.WebControls.DropDownList)dgProducts .Items[i].Cells[0].FindControl("ddQty");

"MDB" <md*@nowhere.com> wrote in message
news:OO**************@TK2MSFTNGP11.phx.gbl...
On the page post back or when the value is changed? Thank you.
"coolhotrod" <co********@nospam.nospam> wrote in message
news:44**********************************@microsof t.com...
In what event do you want to get the value?

"MDB" wrote:
I have a datagrid with an drop down list item templete and was wondering
how
I get the value of this? The datagrid is called dgProducts and the drop
down list is called ddQty.

Thanks in Advance
MDB


Mar 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.