Hiding Rows in DataGridView
Posted on 2008-10-20
Hi, I'm using VB 2005, WinForms. I have a DataGridView on one of my Forms that contains a set of records. For example purposes in this question, lets assume the records in my DataGridView are similar to the ones below:
Item Name Type
Bolt Cutter A
Screw Driver A
Electric Drill B
Electric Saw B
Hand Saw A
As you can see all the hand tools are of type "A" and all the electric tools are of type "B".
How can I programatically hide either type? Let say I wanted to show my user only the hand tools, how do I hide the electric tools?
I don't want to "removed" them from the DataGridView, because I want to show them at a later time. I simply want to hide them perhaps by using a button click or something similar.