473,779 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3322
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******@hotma il.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
14689
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 combobox instead of fetching the
4
2617
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 re-format the updated row fields. I have looked at gridView.rowUpdated method, but cannot figure out how....
3
1979
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 combobox and click the "get orders" button to refresh the gridview with the selected customer's orders, via a GetDataByCustomerID stored procedure. The underlying Orders table includes, among others, three boolean columns and one particular...
19
4756
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 have already some data in table like 6000 rows.Now in that some fields are blank. Now I have created one Form in MS Access in which there are three ComboBoxes.1st one is independent,2nd one is dependent on 1st one and,3rd one is dependent on both...
1
953
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 really puzzled. I've got an SQL Server 2005 DB, and for the sake of simplification, we can say that I've got two tables, tblBooks and tblAuthors. tblBooks contains an integer column called iAuthorID, and tblAuthors contain an integer field...
13
3519
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 allowing the user to make a selection from the popup window. I have enabled AJAX extensions and have a working sample outside of a gridview. However, when I click in the textbox of a gridview row, all I see is a really small square instead of the...
4
2465
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 indicates if the record has been selected. When user1 selects the record from the combobox, the field is updated that the record has been selected. If user2 tries to select that same record, they get a warning that user1 has selected it and...
0
2592
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 items and first item looks like blank. Can anybody help me to resolve this problem how to display items in gridview combobox without double click and it will show first item by default without selection.The application is windows application. ...
0
1608
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 source to bind combobox column. at the form load time i set index for combobox column for each record. if i set form1 as start page ,combobox indexes are seted i also created mdi form with menu control. if i open form1 through mdi form its...
0
10302
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10071
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7478
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.