I do not have any idea on how to sort data using datagridview in VB.NET.
How do I do this by making use of Textbox to input my query, I’m currently using OLEDB.
Here is a picture of what I am trying to do.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Homework?
You cannot exactly sort data using a
DataGridView, but you can set the display order of data in aDataGridView.Set the
SortedColumnproperty of yourDataGridViewobject to theDataGridViewColumnby which you want your data sorted. If you need a more complex sorting order, you might want to call theSortmethod with a customIComparer. Refer to the MSDN documentation for details.Or do you actually want to filter your data by the two criteria for which there is an input line in your screenshot? In that case, I’m not exactly sure about the best solution. Probably you need to iterate through all
DataGridViewRows and set each row’s visibility depending on the entered criteria: