ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.PictureHeaderRow Property

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

[Visual Basic]

Public Property PictureHeaderRow As Image

[C#]

public Image PictureHeaderRow {get;set;}

[Delphi]

public property PictureHeaderRow: Image read get_PictureHeaderRow write set_PictureHeaderRow;

Remarks

By default, C1TrueDBGrid does not display a picture within the header 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 PictureHeaderRow property using the following code:

·      Visual Basic

       Me.C1TrueDBGrid1.PictureHeaderRow = System.Drawing.Image.FromFile("pattern.bmp")

·      C#

       this.c1TrueDBGrid1.PictureHeaderRow = System.Drawing.Image.FromFile("pattern.bmp");

·      Delphi

       Self.C1TrueDBGrid1.PictureHeaderRow := System.Drawing.Image.FromFile('pattern.bmp');

See Also

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


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