Message-ID: <60712811.8843.1711664235205.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8842_327614017.1711664235205" ------=_Part_8842_327614017.1711664235205 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html DataBindingProperties.MaxRows

DataBindingProperties.MaxRows

Description=20

Sets or returns the maximum number of rows to be bound to the template f= ile when the ExcelTemplate.= BindData or Excel= Template.BindColumnData methods are called.

=20
C#
=20
 public int MaxRows{ get; set; }
=20
=20
vb.net
=20
Public Property MaxRows() As Integer
=20
=20

Remarks

=20

Any rows in the data source after the MaxRows value will not be added t= o the template.

=20

MaxRows is a Read/Write property.

=20

Examples

=20
C#
=20

          DataBindingProperties dbp =3D xlt.CreateDataBindingProperties();
          dbp.MaxRows =3D 20;
          xlt.BindData(twodim, names, "TwoDimArray", dbp);
          xlt.Save(Page.Response, "output.xls", false);
        
=20
=20
vb.net
=20

          Dim dbp As DataBindingProperties =3D xlt.CreateDataBindingPropert=
ies()
          dbp.MaxRows =3D 20
          xlt.BindData(twodim, names, "TwoDimArray", dbp)
          xlt.Save(Page.Response, "output.xls", False)
        
=20
------=_Part_8842_327614017.1711664235205--