ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.AllowFilter Property

Gets or sets a value indicating the ability of the grid to automatically filter data.

[Visual Basic]

Public Property AllowFilter As Boolean

[C#]

public bool AllowFilter {get;set;}

[Delphi]

public property AllowFilter: Boolean read get_AllowFilter write set_AllowFilter;

Remarks

If True, and if the Filter Bar is active, the grid will automatically filter data.

If False, the grid will fire the Filter event.

If the FilterBar property is True and the user attempts to filter column data, the grid will automatically filter the column data according to the value in the Filter Bar.

If False, the Filter event allows the application to filter the data.

Example

The following code sets the AllowFilter property to False:

·      Visual Basic

       Me.C1TrueDBGrid1.AllowFilter = False

·      C#

       this.c1TrueDBGrid1.AllowFilter = false;

·      Delphi

       Self.C1TrueDBGrid1.AllowFilter := False;

See Tutorial 21 - Filter Bar for more information.

See Also

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


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