ComponentOne List for WinForms
C1.Win.List.ListBase Namespace / C1ListBase Class / FetchRowStyles Property

In This Topic
    FetchRowStyles Property (C1ListBase)
    In This Topic
    Specifies whether the FetchRowStyle event will be fired.
    Syntax
    'Declaration
     
    
    Public Property FetchRowStyles As Boolean
    public bool FetchRowStyles {get; set;}

    Property Value

    The default value is false.
    Remarks

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

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

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

    To display every other row in a different color or font, you can simply set the AlternatingRows property to True.

    See Also