ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DataColumn.FilterButtonPicture Property

Gets or sets the image show in the filter button for the column.

[Visual Basic]

Public Property FilterButtonPicture As Image

[C#]

public Image FilterButtonPicture {get;set;}

[Delphi]

public property FilterButtonPicture: Image read get_FilterButtonPicture write set_FilterButtonPicture;

Remarks

The in-cell button bitmap is enabled when any of the following are true:

·      The column's C1DisplayColumn.Button property is set to True.

·      The column's DropDown property is set to the name of a C1TrueDBDropdown control.

·      The ValueItems.Presentation property of the column's ValueItems collection is set to Combo Box or Sorted Combo Box.

Example

The following code uses the FilterButtonPicture property to get the sample image to appear in the filter button for the column:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns(0).FilterButtonPicture = System.Drawing.Image.FromFile("C:\\bitmap\\Sample.bmp")

·      C#

       this.c1TrueDBGrid1.Columns[0].FilterButtonPicture = System.Drawing.Image.FromFile("C:\\bitmap\\Sample.bmp");

·      Delphi

       Self.C1TrueDBGrid1.Columns[0].FilterButtonPicture := System.Drawing.Image.FromFile('C:\bitmap\Sample.bmp');

See Also

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


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