问题描述
- aspxgridview后台如何获取单选框的值,aspxgridview签前台代码如下。
-
<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" KeyFieldName="序列号" Theme="Office2003Blue" Width="100%"> <Columns> <dx:GridViewDataTextColumn FieldName="序列号" ReadOnly="True" VisibleIndex="1"> </dx:GridViewDataTextColumn> <dx:GridViewDataTextColumn FieldName="评价指标" VisibleIndex="2"> </dx:GridViewDataTextColumn> <dx:GridViewDataTextColumn FieldName="备用1" VisibleIndex="3"> </dx:GridViewDataTextColumn> <dx:GridViewDataTextColumn FieldName="备用2" VisibleIndex="4"> </dx:GridViewDataTextColumn> <dx:GridViewDataTextColumn VisibleIndex="5" FieldName="评价"> <DataItemTemplate> <dx:ASPxRadioButtonList ID="ASPxRadioButtonList1" runat="server" RepeatDirection="Horizontal" SelectedIndex="0"> <Items> <dx:ListEditItem Text="1" Value="1" Selected="True" /> <dx:ListEditItem Text="2" Value="2" /> <dx:ListEditItem Text="3" Value="3" /> <dx:ListEditItem Text="4" Value="4" /> </Items> </dx:ASPxRadioButtonList> </DataItemTemplate> </dx:GridViewDataTextColumn> </Columns> </dx:ASPxGridView>
时间: 2024-10-30 02:14:40