目標:課程列表(固定樣式重複)、手動控制排列方式(流式/表格/重複方向)。基於 ListControl(CheckBoxList/RadioButtonList/DropDownList 父類)。
| 屬性 | 說明 |
|---|---|
| AppendDataBoundItems | 綁定前是否清空 Items |
| DataTextField | 文字來源欄位 |
| DataTextFormatString | 格式化字串 |
| DataValueField | 值來源欄位 |
| SelectedIndex | 最小選中索引 |
| SelectedItem | 第一個選中項 |
| SelectedValue | 選中值/依值選取 |
每個項目為 ListItem,集合為 Items。自訂列表控件可繼承 ListControl,覆寫 RenderContents 輸出自定義佈局(RepeatDirection、RepeatLayout、RepeatColumns)。