ComponentOne FlexGrid for WinForms
CellButtonImage Property

C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : CellButtonImage Property
Gets or sets the image to be used in cell buttons.
Syntax
'Declaration
 
Public Overridable Property CellButtonImage As Image
public virtual Image CellButtonImage {get; set;}
Remarks

This property allows you to customize the appearance of cell buttons. For details on how to create and handle cell buttons, see the CellButtonClick event.

If you want to use a single picture for all cell buttons on the grid, assign the picture to the CellButtonImage property at design time. To change pictures depending on the row, column, or cell being edited, set the picture in response to the BeforeEdit event.

The pictures used for cell buttons should fit within the button (larger pictures are truncated). They should also be transparent, so the button face can be seen through the empty parts of the picture. For best results, use small icons (16 x 16 pixels) and draw the picture in the upper left 12 x 12 rectangle within the icon.

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members