Hi All
Im using datagridview to load data but i want to filter the grid using the index selected with in a combobox.
Hi All
Im using datagridview to load data but i want to filter the grid using the index selected with in a combobox.
Jump to Posti want to filter the grid using the index selected with in a combobox
That is a very noble goal to reach for, but could you also show us some code(in CODE TAGS!) how this filtering is supposed to look like?
i want to filter the grid using the index selected with in a combobox
That is a very noble goal to reach for, but could you also show us some code(in CODE TAGS!) how this filtering is supposed to look like?
Ok. The ComboBox is filled with school grades from grade 3 til grade 6. I have a grade column in the datagridview that i want to filter when i select one of the grades in the combobox. AS result only those of the selected grade should appear.
You could use the Visible property of the Rows collection of the DataGridView to hide the Rows which don't match with the selection in your ComboBox.
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewrow.visible.aspx
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.