Back to Devexpress

Table.HasBandedRows Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-table-c1668f0e.md

latest2.1 KB
Original Source

Table.HasBandedRows Property

Gets or sets whether to highlight alternating rows.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public bool HasBandedRows { get; set; }
vb
Public Property HasBandedRows As Boolean

Property Value

TypeDescription
Boolean

true if alternating rows are highlighted; otherwise, false.

|

Remarks

The following image shows a table with banded rows:

csharp
using DevExpress.Docs.Presentation;

namespace PresentationApiSample;

public class Program {
    public static void Main(string[] _) {
        //...
        table.HasBandedColumns = true;
        table.HasBandedRows = true;
        table.HasFirstColumn = true;
        table.HasLastColumn = true;
        table.HasTotalRow = true;
        table.HasHeaderRow = true;
    }
}
vb
Imports DevExpress.Docs.Presentation

Namespace PresentationApiSample

    Public Class Program
        Public Shared Sub Main(__ As String())
            '...
            table.HasBandedColumns = True
            table.HasBandedRows = True
            table.HasFirstColumn = True
            table.HasLastColumn = True
            table.HasTotalRow = True
            table.HasHeaderRow = True
        End Sub
    End Class
End Namespace

See Also

Table Class

Table Members

DevExpress.Docs.Presentation Namespace