'宣言 Public Overridable Property CellButtonImage As System.Drawing.Image
public virtual System.Drawing.Image CellButtonImage {get; set;}
'宣言 Public Overridable Property CellButtonImage As System.Drawing.Image
public virtual System.Drawing.Image CellButtonImage {get; set;}
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.