WinForms Edition
Tutorial 13 – CheckBox Selection

In this tutorial you will learn to use the SelectionMode property to allow users to select multiple items in a list using a checkbox.

  1. Follow steps 1 through 6 of Tutorial 8 - Displaying Translated Data to create a project with a C1List bound to a Data Set.
  2. In the Form_Load event, add the following code:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    ' CheckBox selection.
    Me.C1List1.SelectionMode = C1.Win.C1List.SelectionModeEnum.CheckBox
    

    To write code in C#

    C#
    Copy Code
    // CheckBox selection.
    this.c1List1.SelectionMode = C1.Win.C1List.SelectionModeEnum.CheckBox;
    

Run the program and observe the following:

You can place a checkmark in multiple boxes to select multiple rows:

This concludes the tutorial.