ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.PictureModifiedRow Property

Gets or sets the Image used in the record selector to indicate the Modified row.

[Visual Basic]

Public Property PictureModifiedRow As Image

[C#]

public Image PictureModifiedRow {get;set;}

[Delphi]

public property PictureModifiedRow: Image read get_PictureModifiedRow write set_PictureModifiedRow;

Remarks

By default, C1TrueDBGrid uses a pencil to indicate that the current row is modified. 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 PictureModifiedRow property using the following code:

·      Visual Basic

       Me.C1TrueDBGrid1.PictureModifiedRow = System.Drawing.Image.FromFile("pencil.bmp")

·      C#

       this.c1TrueDBGrid1.PictureModifiedRow = System.Drawing.Image.FromFile("pencil.bmp");

·      Delphi

       Self.C1TrueDBGrid1.PictureModifiedRow := System.Drawing.Image.FromFile('pencil.bmp');

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.