473,395 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Datagrid Templete Value

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
3 1320
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Haro Panosyan | last post by:
Suppose I have defined a templete function prototype in a header file and the body in .cpp file and created executable without actually calling the templete function. Now let say from that...
1
by: Raghuram | last post by:
Hi, i have a DataGrid by Name : datagrid1 and in that i had created one templete Column and Added a new datagrid : datagrid2. Now i want to access that datagrid2 how is it possiable. and populate...
2
by: basulasz | last post by:
I have a templete column, and a DropDownList in header templete. I want to add a SelectedIndexChanged event to that DropDownList. But I couldn't. How can I do that? Thanks... -- No Sign
1
by: basulasz | last post by:
I want to get the selected value of a DropDownList which is in a Header Templete of a templete column. I want to get it in an arbitrary location of the code, i mean not from...
0
by: Lance Geeck | last post by:
I am trying to move from VB6 to .NET. I have the enterprise version of VS.NET. I want to be able to build an application using the Enterprise templetes. These include projects for...
4
by: mos | last post by:
Hi! There are two function almost the same: function removelist() { for(list<a*>::iterator it = m_list.begin(); it != m_list.end(); ) { a* p = *it; if (!p->IsValid())
0
by: upendra | last post by:
Hi, I am B.V.Ramesh Babu.I am working as software programmer using .net.We are using asp.net1.1 with C#.net as coding.I hope that i will get the required support from you. Here is my requirement....
1
by: Brett Wesoloski | last post by:
Ok I would expect this to be easy but am running into some problems. I have a templete column in my datagrid with a button. <asp:TemplateColumn HeaderText="E-Mail Proposal"...
2
by: billybob206 | last post by:
Howdy, Is there a way to make the Insert Item Templete in the FormView in VS ASP.Net the default view of a webpage. (The purpose is I'm trying to create a new user page without having to search...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.