Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{description}
{excerpt}The [DataBindingProperties|DataBindingProperties] object contains the properties information necessary to bind data to an ExcelWriter template.
{excerpt}

{signature:C#}
 public sealed class DataBindingProperties
{signature}{signature:vb.net}
Public NotInheritable Class DataBindingProperties
{signature}

{remarks}The [MaxRows|DataBindingProperties.MaxRows], [Transpose|DataBindingProperties.Transpose], and [WorksheetName|DataBindingProperties.WorksheetName] properties, which had been set as parameters in the [SetDataSource|ExcelTemplate.SetDataSource] methods of [ExcelTemplate|ExcelTemplate], are now bundled into the {{DataBindingProperties}} object and can be applied to multiple discrete data binding calls in a single application.

The {{DataBindingProperties}} object must be created using the [ExcelTemplate.CreateDataBindingProperties|ExcelTemplate.CreateDataBindingProperties()] method:
{code:csharp|title=C#}
            DataBindingProperties dbp = xlt.CreateDataBindingProperties();
{code}
{code:vb.net|title=vb.net}
            Dim dbp As DataBindingProperties = xlt.CreateDataBindingProperties()
{code}
{remarks}

{properties}
||Name||Description||
|[MaxRows|DataBindingProperties.MaxRows]|{excerpt-include:DataBindingProperties.MaxRows|nopanel=true}|
|[Transpose|DataBindingProperties.Transpose]|{excerpt-include:DataBindingProperties.Transpose|nopanel=true}|
|[WorksheetName|DataBindingProperties.WorksheetName]|{excerpt-include:DataBindingProperties.WorksheetName|nopanel=true}|