Customizing the Selection Display
In This Topic
The C1FlexGrid includes two features that allow you to customize the way in which the selection is highlighted for the user:
- Excel-Style Marquee: If you set the ShowMarquee property to true, the grid will automatically draw a rectangle around the selection, making it extremely easy to see. By default, the marquee is a two-pixel thick black rectangle, but you can customize it using the Marquee property.
- Selected Cell Headers: If you assign custom brush objects to the grid’s ColumnHeaderSelectedBackground and RowHeaderSelectedBackground properties, the grid will highlight the headers that correspond to selected cells, making it easy for users to see which rows and columns contain the selection.
Together, these properties make it easy to implement grids that have the familiar Excel look and feel. The image below shows an example: