Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filter each cell in dgv
#4
Ah, okay.. You're probably looking for something like this:

Please note that this is Pseudocode, because I do not know the official syntax of VB.NET DGV offhand:

Code:
dvg.SelectionMode = FullRowSelect
For Each Row as DataGridViewRow in dvg.Rows
    For Each Cell as DataGridViewCell in Row.Cells
        If (Cell.Value.ToString().Equals(TextBox1.Text))
            Row.Selected = True
            Break
        End If
     Next
Next


This should check all of the cells for the values being searched and select only the rows containing that information.
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)