Spread for ASP.NET 10 Product Documentation
Label Property (Row)
Example 


Gets or sets the header text for this row.
Syntax
'Declaration
 
Public Property Label As String
'Usage
 
Dim instance As Row
Dim value As String
 
instance.Label = value
 
value = instance.Label
public string Label {get; set;}

Property Value

String containing the label for this row
Remarks
Row objects returned by the Rows object's Default property and Row objects in the column or row headers do not have a label.
Example
This example creates a spreadsheet with 10 columns and 20 rows. A Row object is created and assigned to the second row of the sheet. The row header is given custom text using the Label property, which is also returned to a text box.
FpSpread1.ActiveSheetView.ColumnCount=10;
FpSpread1.ActiveSheetView.PageSize=20;
FpSpread1.ActiveSheetView.RowCount=20;
FarPoint.Web.Spread.Row myrow;
myrow=FpSpread1.ActiveSheetView.Rows[1];
myrow.Label="FarPoint";
TextBox1.Text=myrow.Label;
FpSpread1.ActiveSheetView.ColumnCount=10
FpSpread1.ActiveSheetView.PageSize=20
FpSpread1.ActiveSheetView.RowCount=20
Dim myrow As FarPoint.Web.Spread.Row
myrow=FpSpread1.ActiveSheetView.Rows(1)
myrow.Label="Int"
TextBox1.Text=myrow.Label
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

Row Class
Row Members
Default Property

 

 


Copyright © GrapeCity, inc. All rights reserved.