| True DBGrid for WinForms Tutorials > Tutorial 21: Adding a Filter Bar |
In this tutorial, you will learn how to use the grid's Filter Bar functionality to allow the end user to sort column data dynamically at run time. Complete the following steps:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Me.C1TrueDBGrid1.FilterBar = True |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
this.c1TrueDBGrid1.FilterBar = true; |
|
Before Filter:
After Filter:
You've successfully completed adding a filter bar; this concludes the tutorial.