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


Glossary Item Box

Gets or sets the data field for this column in the data source.

Syntax

Visual Basic (Declaration) 
Public Property DataField As String
Visual Basic (Usage)Copy Code
Dim instance As Column
Dim value As String
 
instance.DataField = value
 
value = instance.DataField
C# 
public string DataField {get; set;}

Property Value

String containing the name of the data field

Example

This example returns the DataField of the Column object of a spreadsheet when it is bound to a database.

C#Copy Code
FarPoint.Web.Spread.Columnmycol;
mycol=FpSpread1.ActiveSheetView.Columns[0];
stringstr=mycol.DataField;
TextBox1.Text=str;
Visual BasicCopy Code
DimmycolAsFarPoint.Web.Spread.Column
DimStrAsString
mycol=FpSpread1.ActiveSheetView.Columns(0)
Str=mycol.DataField()
TextBox1.Text=Str

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.