By default end users can filter columns in the grid at run time. For more information, see Filtering Columns. If you choose, however, you can disable the column filtering feature by setting the C1DataGrid.CanUserFilter property to False.
At Design Time
To disable column filtering, complete the following steps:
In XAML
For example to disable column filtering, add CanUserFilter="False" to the <c1:C1DataGrid> tag so that it appears similar to the following:
<c1:C1DataGrid Name="c1datagrid1" Height="180" Width="250" CanUserFilter="False" />
In Code
For example, to disable column filtering, add the following code to your project:
Visual Basic |
Copy Code
|
---|---|
Me.C1DataGrid1.CanUserFilter = False |
C# |
Copy Code
|
---|---|
this.c1DataGrid1.CanUserFilter = false; |
What You've Accomplished
Run the application and observe that you can no longer filter columns at run time; the drop-down arrow to display the filter box is no longer visible at run time. For more information about column filtering, see the Filtering Columns topic.