Using Comboboxs in grid where the drop down list is dependant on row value of grid

BrownFingers

Member
Joined
Nov 21, 2008
Messages
15
Programming Experience
Beginner
Hi,
I have a grid full of stock items which I want to add a combobox which displays the available colour of each stock item. I have a table StockItemColours table which I can query but I'm not sure how to achieve this in the gridview.

i.e. the dropdown list for row 1 may be different to that of row2, row3 etc.

e.g.
Stock Item 1 Red/Blue
Stock Item 2 Blue/Green
Stock Item 3 Red/Yellow

I somehow want to sent the stock item as an argument to the datasource for each row.

Can anyone help me ?
 
Back
Top