Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to create a custom View allowing collapsing of band headers

$
0
0

This example demonstrates how to create a custom BandedGridView with custom BandedColumns. The columns now have the DefaultBandColumn property and the View draws buttons in band headers. On pressing this button columns in the band whose DefaultBandColumn option is disabled become hidden if they are visible and vise versa. Columns with DefaultBandColumn option enabled remain untouched. Such behavior is achieved by processing the CustomDrawBandHeader event in combination with MouseMove, MouseDown and MouseUp events in a BandedGridView descendant. Also we need to create a BandedColumn descendant in order to have the DefaultBandColumn property.

Question Comments

Added By: Andrzej Bukalski at: 6/26/2014 5:36:07 AM    

Hi,

this is very nice functionality, but I am having a problem when I have some columns InVisible but added to the Band.

In this situation it simply reverse visible to invisible without collapsing

The same situation is when you drag a Column to Collapsed Band

Regards
Andrzej


Viewing all articles
Browse latest Browse all 7205

Trending Articles