xtremeLogic
Programmer
Hi,
I would like to output a list of possible payment options from the db and display them on a webform page. Each option has a corresponding description. Also for one option I would like to have a corresponding dropdownlist of possible values. Finally I would like the options to be only single selectable. To illustrate these points, say I get 3 options returned from the db. The returned datatable has two columns (paymentOption, paymentDescription):
PAYMENTOPTION | PAYMENTDESCRIPTION
-------------------------------------------------------
Payment Option1 | Description1
Payment Option2 | Description2
Payment Option3 | Description3
I would like to display the above table as a radio button list of values, but with an additional column showing the description of that option. However, for Payment Option 1, I would like to have a dropdown list in the description column.
What I have tried to do to is to bind the datatable to a datagrid, with the following column structure:
Column1: RowSelectorColumn
Column2: BoundColumn which shows the paymentOption
Column3: TemplateColumn which shows the paymentDescription
This works fine except for the case when PaymentOption1 is returned from the db. For that case, I would like to have a dropdownlist appear in Column3. I have tried Panels, EditTemplateColumns,etc. and nothing seems to work.
If anyone can tell me how to get that dropdown list shown when PaymentOption1 occurs, I would greatly appreciate it. Also, if there is a better way of doing this, please give your feedback.
Thank you kindly.
I would like to output a list of possible payment options from the db and display them on a webform page. Each option has a corresponding description. Also for one option I would like to have a corresponding dropdownlist of possible values. Finally I would like the options to be only single selectable. To illustrate these points, say I get 3 options returned from the db. The returned datatable has two columns (paymentOption, paymentDescription):
PAYMENTOPTION | PAYMENTDESCRIPTION
-------------------------------------------------------
Payment Option1 | Description1
Payment Option2 | Description2
Payment Option3 | Description3
I would like to display the above table as a radio button list of values, but with an additional column showing the description of that option. However, for Payment Option 1, I would like to have a dropdown list in the description column.
What I have tried to do to is to bind the datatable to a datagrid, with the following column structure:
Column1: RowSelectorColumn
Column2: BoundColumn which shows the paymentOption
Column3: TemplateColumn which shows the paymentDescription
This works fine except for the case when PaymentOption1 is returned from the db. For that case, I would like to have a dropdownlist appear in Column3. I have tried Panels, EditTemplateColumns,etc. and nothing seems to work.
If anyone can tell me how to get that dropdown list shown when PaymentOption1 occurs, I would greatly appreciate it. Also, if there is a better way of doing this, please give your feedback.
Thank you kindly.