ComponentOne GridView for ASP.NET WebForms
Task-Based Help / Adding Controls to a Column / Adding Check Box or List Box Controls to a Column
In This Topic
    Adding Check Box or List Box Controls to a Column
    In This Topic

    To use the standard ASP.NET CheckBox and ListBox controls to display data for a column, complete the following steps:

    1. Right-click C1GridView and select Show Smart Tag from the context menu. From the C1GridView Tasks menu, select Property builder. The C1GridView Properties dialog box appears.
    2. Click the Columns tab in the left pane.
    3. Under Column List, select Template Field from the list of Available columns.
    4. Click the arrow button between the column lists to copy the Template Field to the list of Selected columns.
    5. Select the new Template Field and set the desired properties under Column properties. This might include adding a header or footer to the column, fixing the column's size or position, and so on.
    6. Click OK to return to the form.
    7. Click the C1GridView Smart Tag and select Edit Templates from the C1GridView Tasks menu.
    8. Click the Display drop-down arrow and choose the new Template Field you created.
      The template editor Document appears.
    9. Select the ItemTemplate section.
    10. Double-click the CheckBox or ListBox control in the Visual Studio Toolbox to add it to the ItemTemplate section. Note that you can format the CheckBox or ListBox using the Properties window.
    11. Click the C1GridView smarttTag and select End Template Editing from the C1GridView Tasks menu.
    See Also