473,406 Members | 2,954 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,406 software developers and data experts.

Gridview with combobox whose data is dependent on field in gridview

I am an inexperienced asp.net user starting my first app in asp.net. I
need to have a combobox field in my gridview whose data is filtered by
a field in that row. More specifically, I am to display all the
invoice numbers (there can be many) tied to the container number
displayed on the row. Each row has a different container number so in
each row the combobox will need to display different information. I
have found code to help me figure out how to populate the combobox, but
I can't find anything out there that has an example of a combobox on a
gridview that has unique values in the combobox for each row, tied to
data in that row.

Thanks in advance for any help.

Nov 20 '05 #1
3 3299
I meant dropdown list not combobox. I sometimes confuse the two.
Sorry.

Nov 20 '05 #2
Look at the 2-way databinding from the Quickstart tutorials:
http://66.129.71.130/QuickStartv20/u...umDropDown.src

http://66.129.71.130/QuickStartv20/a...spx#twowaybind
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"wa******@hotmail.com" wrote:
I am an inexperienced asp.net user starting my first app in asp.net. I
need to have a combobox field in my gridview whose data is filtered by
a field in that row. More specifically, I am to display all the
invoice numbers (there can be many) tied to the container number
displayed on the row. Each row has a different container number so in
each row the combobox will need to display different information. I
have found code to help me figure out how to populate the combobox, but
I can't find anything out there that has an example of a combobox on a
gridview that has unique values in the combobox for each row, tied to
data in that row.

Thanks in advance for any help.

Nov 20 '05 #3
Thank you for your response, but I don't see the relationship between
the sample that you sent and my question. This might be because I am
new to asp.net. What I want is for the dropdownlist to be in my
gridview and the data in the dropdownlist for each row to be unique
based on the key value for the row.

Again thanks for your reply and the site you referrenced should be
helpful to me in the future.

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Shravan | last post by:
Hi, How can I bind DataRow array to ComboBox. I tried setting DataSource -> DataRow Array DisplayMember -> ColumnName But it was showing "System.Data.DataRow" for every item in the...
4
by: Nalaka | last post by:
Hi, I have two questions about gridViews. 1. How can I intercept the row/column values at loading to change values? 2. After I update a row (using default update functionality), how can I...
3
by: Richard Carpenter | last post by:
I have a simple winform with a customers combobox, a "get orders" button and an orders grid. Due to other requirements, I have implemented the form to allow the user to select a customer from the...
19
by: billa856 | last post by:
Hi, I have to use the table(PRODUCTION) already generated in MS Access in which all fields are of TEXT type.fields like (orderdate,palletno,customercode,itemno,pono,carto n,pcs,totalquantity)Now i...
1
by: Johnny Jörgensen | last post by:
I do a lot of winforms programming in C# and VB.NET, but not I've been asked to do an ASP.NET application, and that's a first for me. So I hope you will bear with this basic question, because I'm...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
4
by: EManning | last post by:
Using A2003 w/ tables linked to SQL Server. All users have their own copy of the mdb. I have a combobox whose rowsource is a query. This query is based on a table and has a field in it that...
0
by: pavanip | last post by:
Hi, I am facing problem with combobox in gridview.I have used combobox in gridview and i am binding data to gridview combobox from database. If i click 2 times on combobox then it is showing the...
0
by: marisenthil | last post by:
i am created windows application. i have a gridview in form1 with combobox column. using binding source binded data from the database to gridview except combobox column. i used separate binding...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.