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:
- 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.
- Click the Columns tab in the left pane.
- Under Column List, select Template Field from the list of Available columns.
- Click the arrow button between the column lists to copy the Template Field to the list of Selected columns.
- 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.
- Click OK to return to the form.
- Click the C1GridView Smart Tag and select Edit Templates from the C1GridView Tasks menu.
- Click the Display drop-down arrow and choose the new Template Field you created.
The template editor Document appears.
- Select the ItemTemplate section.
- 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.
- Click the C1GridView smarttTag and select End Template Editing from the C1GridView Tasks menu.
See Also