Spread ASP.NET 6.0 Product Documentation
ColumnHeaderDataModel Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : ColumnHeaderDataModel Property


Glossary Item Box

Gets or sets the data for the column header.

Syntax

Visual Basic (Declaration) 
Public Property ColumnHeaderDataModel As ISheetDataModel
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As ISheetDataModel
 
instance.ColumnHeaderDataModel = value
 
value = instance.ColumnHeaderDataModel
C# 
public ISheetDataModel ColumnHeaderDataModel {get; set;}

Property Value

ISheetDataModel object containing the data

Remarks

This property is available at run time only.

To get or set the object for the row header, use the RowHeaderDataModel property.

Example

This example returns the number of columns in the sheet to a list box.
C#Copy Code
FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView; 
ListBox1.Items.Add(Convert.ToString(sv.ColumnHeaderDataModel.ColumnCount)); 
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
ListBox1.Items.Add(sv.ColumnHeaderDataModel.ColumnCount)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.