ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.FetchRowStyles Property

Gets or sets a value indicating whether the FetchRowStyle event will be raised.

[Visual Basic]

Public Property FetchRowStyles As Boolean

[C#]

public bool FetchRowStyles {get;set;}

[Delphi]

public property FetchRowStyles: Boolean read get_FetchRowStyles write set_FetchRowStyles;

Remarks

If True, the FetchRowStyle event will be raised whenever the grid is about to display a row of data.

If False (the default), the FetchRowStyle event is not raised.

Set this value to True when needing to perform complex per-row formatting operations that can only be done using the FetchRowStyle event. For example, to apply fonts and/or colors to all rows that satisfy certain criteria, then set the FetchRowStyles property to True and write code for the FetchRowStyle event.

Note: To display every other row in a different color or font, set the AlternatingRows property to True.

Example

The following code raises the FetchRowStyle event:

·      Visual Basic

       Me.C1TrueDBGrid1.FetchRowStyles = True

·      C#

       this.c1TrueDBGrid1.FetchRowStyles = true;

·      Delphi

       Self.C1TrueDBGrid1.FetchRowStyles := True;

See Also

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


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