Gets or sets the Image used in the record selector to indicate the AddNew row.
[Visual Basic]
Public Property PictureAddnewRow As Image
[C#]
public Image PictureAddnewRow {get;set;}
[Delphi]
public property PictureAddnewRow: Image read get_PictureAddnewRow write set_PictureAddnewRow;
Remarks
By default, C1TrueDBGrid uses an asterisk to indicate the AddNew row. However, a different bitmap can be specified in the designer or in code.
Note: The grid draws three-dimensional effects within the record selector column, so only the interior image needs to be provided.
Example
A bitmap can be assigned to the PictureAddnewRow property using the following code:
Me.C1TrueDBGrid1.PictureAddNewRow = System.Drawing.Image.FromFile("asterisk.bmp")
· C#
this.c1TrueDBGrid1.PictureAddNewRow = System.Drawing.Image.FromFile("asterisk.bmp");
· Delphi
Self.C1TrueDBGrid1.PictureAddNewRow := System.Drawing.Image.FromFile('asterisk.bmp');
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |