Using VB.Net, I would like to know if a datagridview column can be set in the designer to both a Combobox AND an Autofilter type?
Regards
Printable View
Using VB.Net, I would like to know if a datagridview column can be set in the designer to both a Combobox AND an Autofilter type?
Regards
What's an Autofilter type column? That doesn't sound like something that the DataGridView does out of the box. Please provide a full and clear explanation of the problem.
I have referenced a .dll called DataGridViewAutoFilter.dll.
I then have an option to set the datagridview's column type to DataGridViewAutoFilterTextBoxColumn.
When I run the application, I have a down arrow in the datagridview column header.
Other columns are of type combobox. My question is whether it is possible to have those combobox columns also autofilter types?
They are two different types. One thing cannot be two different types at the same time. What you can do is create a new type that includes the functionality of the other two types.
Given the name DataGridViewAutoFilterTextBoxColumn, I would guess that it inherits from DataGridViewTextBoxColumn and adds some extra functionality. You could probably derive a new class from DataGridViewComboBoxColumn and add that same functionality and name it DataGridViewAutoFilterComboBoxColumn.
Indeed. First thing comes in my mind is "AutoFilterRow" (not column) which was provided by DevExpress exclusively for their "DataGridView" control, the "GridControl" as a built-in feature. Automatically connected to your db and does queries as shown:
Attachment 187810
So GideonE, If you've seen GridControl benefits but it is difficult to work with and you want to switchover back to DataGridView, I'm afraid you should write them down.