Introduction
In this article we will learn about how to filter data in datagridview. We can better understand this with an example.
Step 1
Create Windows Form with Textbox and DataGridView.
![Form]()
Step 2
In coding view, code as per the following code. Here, I give both code c# and vb.Net. You can choose as per your requirement(s).
Code as per Vb.Net
Code as per C#
Output 1
When you run the application, by default all data will be loaded in datagridview as per the following:
![Form]()
Final Output
In Textbox, when I type IT, the following records will be filtered:
![Output]()
Summary
In this article, we have learned about how to filter data in datagridview and also highlight cells.