Back to Devexpress

Table.HasBandedColumns Property

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

latest2.2 KB
Original Source

Table.HasBandedColumns Property

Gets or sets whether to highlight alternating columns.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

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

Property Value

TypeDescription
Boolean

true if alternating columns are highlighted; otherwise, false.

|

Remarks

The following image shows a table with banded columns:

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