标准控件(六)——RadioButton,RadioButtonList

RadioButton

    单选按钮

    拥有Label的所有属性。

 

    Text                    文本

    Checked                 bool,是否被选中

    GroupName               组名,将来被呈现为<input type=radio>中的name属性

 

 

RadioButtonList

    显示多个,选择1个。布局。

属性

    Items

    DataSource              数据源

    DataTextField           显示的内容

    DataValueField         

    SelectedValue           选中项的值

    SelectedItem            选中的对象(ItemTextValue属性)

    SelectedIndex           在集合中的下标序号

    AppendDataBoudItem      选择是否将数据绑定项追加到静态声明的列表项上

    RepeatLayout            Table—用表格布局;Flow—用span布局。

    RepeatColumns           一行显示几个。

    RepeatDirection         布局方向。

 

原文地址:https://www.cnblogs.com/phantom-k/p/4297811.html