Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filter each cell in dgv
#2
How is the data in the DataGridView stored? Is it stored using a DataSource or simply being directly added into the DataGridView? If you're using a datasource, filtering becomes fairly easy, as you can do something like this:


Code:
CType(dgv.DataSource, DataTable).DefaultView.RowFilter = TextBox1.Text
dgv.Refresh()

If you're just inputting things in the Data Grid View direclty, I think you will need to go through every row, check to see if the column is equal to the textbox value, and eliminate those that are not equivalent.
My Blog | My Setup | My Videos | Have a wonderful day.
Reply


Messages In This Thread
Filter each cell in dgv - by t3cho - 04-24-2015, 12:44 PM
RE: Filter each cell in dgv - by brandonio21 - 04-24-2015, 03:32 PM
RE: Filter each cell in dgv - by t3cho - 04-25-2015, 12:19 AM
RE: Filter each cell in dgv - by brandonio21 - 04-26-2015, 01:44 PM
RE: Filter each cell in dgv - by brco900033 - 05-08-2015, 09:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)