Quantcast
Channel: Alextv.net feed from blogs.msdn.com
Viewing all articles
Browse latest Browse all 25

New White Paper: DataGridView Drop-Down Filter Lists

$
0
0

Are you spoiled by the AutoFilter feature in Excel? Do you want the same functionality in the DataGridView control? Then my new whitepaper and sample are for you. See:

Building a Drop-Down Filter List for a DataGridView Column Header Cell

The DataGridViewAutoFilter library provides a custom DataGridViewColumnHeaderCell with a drop-down filter list that displays each unique value in a column, and updates the filter of the bound data source when a value is selected from the list. A custom DataGridViewColumn is also provided to make using the AutoFilter header cell easier, particularly in the Windows Forms Designer.

Customizing DataGridView column header cells is not as easy as customizing regular cells. For one thing, column header cells were never meant to be edited, so they cannot take advantage of the editing-control infrastructure provided for regular cells. This paper describes some of the issues that you must address when creating a control-hosting DataGridView cell from scratch.


Viewing all articles
Browse latest Browse all 25

Latest Images

Trending Articles





Latest Images