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

datagrid and combo boxes

rut
I have a need to put a combobox in one column of a datagrid. My problem is that I need to be able to have different datasources for each row of comboboxes. Is there anyway to do this

Thanks
Rut
Nov 20 '05 #1
4 981
I am assuming you have tried to bind the combo boxes to their data sources?
My problem is that I need to be able to have different
datasources for each row of comboboxes. Is there
anyway to do this?

Thanks,
Rut

Nov 20 '05 #2
rut
I guess that's the question. I'm not sure how you can bind each combobox (one in each row) to it's own datasource. Can this be done? Or maybe it more in how the combo is added to the datagrid. I assume that if you add a combobox to a datagrid column and set it's datasource then it will be that way for each row.
Nov 20 '05 #3
"rut" <an*******@discussions.microsoft.com> wrote in message
news:B9**********************************@microsof t.com...
I guess that's the question. I'm not sure how you can bind each combobox

(one in each row) to it's own datasource. Can this be done?

May I suggest another approach?

Instead write the data you need to arraylists and populate your combo boxes
with these. You would be making too many round trips on your database
unnecessarily which will slow you down.
Nov 20 '05 #4
"rut" <an*******@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
That might be a good work-around although it won't save trips to the

database. The contents of the combo is loaded based on the value entered in
another column of the datagrid.

Can you work with the data in your dataset instead of returning to the
database each time? It looks like you need some concept work here.
Nov 20 '05 #5

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

Similar topics

5
by: sdbranum | last post by:
I have been using Visual C#.NET to code a large project having many data adapters, data sets, datagrids, multiple forms with tab pages, each containing various controls (mostly label, text boxes,...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
5
by: Niels | last post by:
Hi There, I have a form with a datagrid, and some text/combo-boxes and a button. When I select a record in the datagrid an press the button I want to see the valeus of the cells from tehe...
3
by: simchajoy2000 | last post by:
Hi, I have been working with datagrids a lot in the past two weeks and I am running across a lot of problems. Maybe there is no way around these problems but I hope there are and someone out...
6
by: Ron L | last post by:
I have a dataset whose source is a SQL 2k stored procedure that I am trying to display in a datagrid. This datasource has 4 columns that I am interested in here, a text column and 3 value columns...
6
by: Doug Bell | last post by:
Hi I have a datagrid with a combo box, I need to populate the combo with data dependant on the record value. eg for record 1, field Warehouse = 2R so combo would allow selection of locations...
0
by: Ausclad | last post by:
Hi all, I have a datagrid, which is bound to a datatable. In the datagrid, I have changed some of the fields to be combo boxes. In the datagrid I want to be able to allow the user to change...
1
by: Doug Bell | last post by:
Hi I have a DataGrid that has some Combo Boxes. I also have some code that handles tabs so that if the User Tabs forward or back into a hidden column the code moves on to the next visible column....
1
by: Peter | last post by:
In a dataview, I have lots and lots of table relations that make editing each row kind of a hassle... having to look up ID numbers in 7 different tables to reference the correct items in the parent...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
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: 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
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
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
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...

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.