Hello Developers..
So am back again with dattagridview and comboboxes...sorry for the troubless..
Now let me come to my scenario aka problem..
I have 2 dataviewgrids in my WINDOWS APPLICATION FORM (VB.net).
The first grid populates some data from the SQLSERVER 2005 DB.
When I click on any cell of the first grid, my second grid shows up and populates with the data corresponding to the cell which I have clicked in the grid 1.This is working perfect and so far so good.
In the second grid I have 3 combobox columns and some textbox columns..The three combobox columns in this grid are also populated from the DB only usng datasets and datasource.In the first Combobox Column if I select one value, then the corresponding values are filled into the other textboxcolumns.This is also working good.The other 2 comboboxcolumns are also populated from database using different datasets..
So these were the functionalities I've implemented in my form so far.
Now here comes my required stuff..
let me detail the process here.
Am about to add a master data ( i.e data into the first grid).it got added and after that a msgbox pops up sayn u must add data into the second grid as well.so the user is adding the data in the second grid.(all works except the new requirement).he added something into the first row by selecting the comboboxcolumns and also editing the other columns in the first row.(he havent saved this row.This will happen when he clicks the save button in the form not in the grid)
he goes into the second row .Now here he should not see the item from the combobox1 which he has selected in row1.
to be more clear in row1 he selected "Item 1" in combobox1.In row2 when he comes to combobox1, there should not be "Item1" in that dropdown.
similarly in row 3 the combobox should populate with a dropdown without the values he/she has selected in row1 and row 2 and so on.....
This can be saved only after he has finished entering into all (desired no: of) rows in grid2.
How to accomplish this???this is eating my brains....
I've added a handler to catch the combobox selected index changed event in the gridview...
I can provide the code also if required.
Thanks in advance
Renju
So am back again with dattagridview and comboboxes...sorry for the troubless..
Now let me come to my scenario aka problem..
I have 2 dataviewgrids in my WINDOWS APPLICATION FORM (VB.net).
The first grid populates some data from the SQLSERVER 2005 DB.
When I click on any cell of the first grid, my second grid shows up and populates with the data corresponding to the cell which I have clicked in the grid 1.This is working perfect and so far so good.
In the second grid I have 3 combobox columns and some textbox columns..The three combobox columns in this grid are also populated from the DB only usng datasets and datasource.In the first Combobox Column if I select one value, then the corresponding values are filled into the other textboxcolumns.This is also working good.The other 2 comboboxcolumns are also populated from database using different datasets..
So these were the functionalities I've implemented in my form so far.
Now here comes my required stuff..
let me detail the process here.
Am about to add a master data ( i.e data into the first grid).it got added and after that a msgbox pops up sayn u must add data into the second grid as well.so the user is adding the data in the second grid.(all works except the new requirement).he added something into the first row by selecting the comboboxcolumns and also editing the other columns in the first row.(he havent saved this row.This will happen when he clicks the save button in the form not in the grid)
he goes into the second row .Now here he should not see the item from the combobox1 which he has selected in row1.
to be more clear in row1 he selected "Item 1" in combobox1.In row2 when he comes to combobox1, there should not be "Item1" in that dropdown.
similarly in row 3 the combobox should populate with a dropdown without the values he/she has selected in row1 and row 2 and so on.....
This can be saved only after he has finished entering into all (desired no: of) rows in grid2.
How to accomplish this???this is eating my brains....
I've added a handler to catch the combobox selected index changed event in the gridview...
I can provide the code also if required.
Thanks in advance
Renju