<CheckBoxList>

The CheckboxList tag renders as a series of checkboxes at run-time.

Syntax

<CheckBoxList
    AccessKey="string"
    AppendDataBoundItems="True|False"
    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"
    BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset"
    BorderWidth="size"
    CellPadding="integer"
    CellSpacing="integer"
    CssClass="string"
    DataField="string"
    DataSourceID="string"
    DataTextField="string"
    DataTextFormatString="string"
    DataType="string|int32|...."
    DataValueField="string"
    Font-Bold="True|False"
    Font-Italic="True|False"
    Font-Names="string"
    Font-Overline="True|False"
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium| Large|X-Large|XX-Large"
    Font-Strikeout="True|False"
    Font-Underline="True|False"
    ForeColor="color name|#dddddd"
    Height="size"
    ID="string"
    Nullable="True|False"
    RepeatColumns="integer"
    RepeatDirection="Horizontal|Vertical"
    RepeatLayout="Table|Flow"
    SelectedItemsSeparator="string||"
    Style="string"
    TabIndex="integer"
    TextAlign="Left|Right"
    ToolTip="string"
    Visible="True|False"
    Width="size"
>

    <ListItem value="string" selected="True|False">Item1</ListItem>
    <ListItem value="string">Item2</ListItem>
    ...
</CheckBoxList>

Remarks

Back to top

Example

<addform>
  ...
  <table>
    <tr>
       <td>
        <label target="txtFirstName" text="First Name" />
        <textbox id="txtFirstName" datafield="FirstName" datatype="string" />
      </td>
    </tr>
    <tr>
      <td>
        <label target="lstColors" text="Favorite Color" />
        
<checkboxlist id="cblColors" datafield="FavoriteColors" datatype="string">
           <listitem value="#00FF00">Green</listitem>
           <listitem value="#FF0000" selected="true">Red</listitem>
           <listitem value="#0000FF">Blue</listitem>
         </checkboxlist>

      </td>
    </tr>
    <tr>
      <td colspan="2">
        <addbutton text="Add"/> <cancelbutton text="Cancel"/>
      </td>
    </tr>
  </table>
</addform>
Back to top