MultiSelect for WinForms
非連結モードでのMultiSelect
データ連結 > 非連結モードでのMultiSelect

In unbound mode, you can populate the control with data by generating its content. For generating content, you need to add items either at design time, or at run time.

The following code populates C1MultiSelect control with customer names when the form loads at run time.

C#
コードのコピー
private void Form1_Load(object sender, EventArgs e)
{
    c1MultiSelect1.Items.Insert(0,new C1.Win.Input.C1CheckListItem("John"));
    c1MultiSelect1.Items.Add(new C1.Win.Input.C1CheckListItem("Alex"));
    c1MultiSelect1.Items.Add(new C1.Win.Input.C1CheckListItem("Sean"));
}