Hi,
I wanted to have 2 column in a grid; one is a combobox control while the other one is just text.
There is 2 button outside of the grid that is "Add" and "Remove".
When the user clicks "Add", it will generate one row in the grid that allows the user to select.
When the user selects a selection in the combobox in the 1st column, the 2nd column will also be changed accordingly to the selection.
My question is:
1) How do I bind the data in the combobox in the grid?
2) How do I achieve the ability to change the 2nd column according to the combobox selection?
Additional note: The databinding is occurred in code behind.
When user clicks "Add", a new row will be created and the default selection is "<<Select>>".
Can someone please enlighten me about this?
Thanks.
I wanted to have 2 column in a grid; one is a combobox control while the other one is just text.
There is 2 button outside of the grid that is "Add" and "Remove".
When the user clicks "Add", it will generate one row in the grid that allows the user to select.
When the user selects a selection in the combobox in the 1st column, the 2nd column will also be changed accordingly to the selection.
My question is:
1) How do I bind the data in the combobox in the grid?
2) How do I achieve the ability to change the 2nd column according to the combobox selection?
Additional note: The databinding is occurred in code behind.
When user clicks "Add", a new row will be created and the default selection is "<<Select>>".
Can someone please enlighten me about this?
Thanks.