ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.PictureCurrentRow Property

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

[Visual Basic]

Public Property PictureCurrentRow As Image

[C#]

public Image PictureCurrentRow {get;set;}

[Delphi]

public property PictureCurrentRow: Image read get_PictureCurrentRow write set_PictureCurrentRow;

Remarks

By default, C1TrueDBGrid uses an arrow to indicate that the current row is unmodified. 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 PictureCurrentRow property using the following code:

·      Visual Basic

       Me.C1TrueDBGrid1.PictureCurrentRow = System.Drawing.Image.FromFile("arrow.bmp")

·      C#

       this.c1TrueDBGrid1.PictureCurrentRow = System.Drawing.Image.FromFile("arrow.bmp");

·      Delphi

       Self.C1TrueDBGrid1.PictureCurrentRow := System.Drawing.Image.FromFile('arrow.bmp');

See Also

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


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