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

In This Topic
    FetchRowStyles Property (DropDownList)
    In This Topic
    Specifies whether the C1.Win.List.ListBase.C1ListBase.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 C1.Win.List.ListBase.C1ListBase.FetchRowStyle event will be fired whenever the list is about to display a row of data.

    If False (the default), the C1.Win.List.ListBase.C1ListBase.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 C1.Win.List.ListBase.C1ListBase.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 C1.Win.List.ListBase.C1ListBase.FetchRowStyle event.

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

    See Also