This topic demonstrates how to use filters on a CheckBox column of a C1GridView control.
In the Designer
Complete the following steps:
In Source View
To enable filtering on the checkbox field, modify the <cc1:C1GridView ></cc1:C1GridView > tag as shown below:
<cc1:C1GridView ID="C1GridView1" runat="server" AutogenerateColumns="False" DataKeyNames="ID"
DataSourceID="SqlDataSource1" ShowFilter="True">
Set the ShowFilter property to True.
In Code
To enable checkbox filters, add the following code to the Page_Load event:
To write the code in Visual Basic:
Visual Basic |
Copy Code
|
---|---|
' Set ShowFilter to True C1GridView1.ShowFilter = True |
To write the code in C#:
C# |
Copy Code
|
---|---|
// Set ShowFilter to true C1GridView1.ShowFilter = true; |