A pair of radio buttons in a datagrid cell
-
How could I add a pair of radio buttons (w/ values YES and NO) in an edit (and add new) column of a data grid? I've seen samples that have one radio button per column to select it or de-select it (used a lot in surveys) but I haven't found yet an example where the user gets a pair in one column cell.
-
How could I add a pair of radio buttons (w/ values YES and NO) in an edit (and add new) column of a data grid? I've seen samples that have one radio button per column to select it or de-select it (used a lot in surveys) but I haven't found yet an example where the user gets a pair in one column cell.
Hi there. Use a
<TemplateColumn>
in yourDataGrid
; in the<TemplateColumn>
add a asp:RadioButtonList control with Yes/No options. -
Hi there. Use a
<TemplateColumn>
in yourDataGrid
; in the<TemplateColumn>
add a asp:RadioButtonList control with Yes/No options.I've got your suggestion working fine. Thank you. The code behind now is the tricky part. I need to read into the radio button pair either a YES or a NO depending on the current value in the dataset, because at the moment none of the radio buttons are selected.