Combobox and Grid on Windows Form
- From: "Jeremy" <jeremy.mitchell@xxxxxxxxx>
- Date: 16 May 2005 10:32:43 -0700
I have a combo box and a grid on the windows form. I have the grid
populated with data from a query with on simple join to show the user
friendly description of the ID that is in the table. When I click on
one row of the grid, I will show the value in the combo box. When the
user changes the value of the combo box, I want to have that value
reflected in the appropriate column in the grid. When the user is done
making the changes, a button will be pressed to commit all of the
changes to the database. Just so you know, in grid editing is out of
the question for this project. The standard is to have a seperate combo
box to do all of the editing. What is the best way of going about this?
I currently have it set up so that the grid is bound to a dataset
containing all of the information with the join query. I looked into
having a dataset with two datatables with a datarelation, but then the
grid will not display the way I want it to. I dont see an easy way to
display the unique values in the combo box without binding it to its
own dataset, then manually finding the record in the other dataset and
updating the appropriate column. I dont mind doing that, but I want to
know if there is a better method.
thanks!
.
- Follow-Ups:
- Re: Combobox and Grid on Windows Form
- From: Cor Ligthert
- Re: Combobox and Grid on Windows Form
- Prev by Date: RE: How to format a rowfilter which includes quote characters...
- Next by Date: Re: Parameters Question
- Previous by thread: How do i perform a databind on a web user control within a repeate
- Next by thread: Re: Combobox and Grid on Windows Form
- Index(es):
Loading