Spread for ASP.NET 8.0 Product Documentation
DataField Property (Column)
Example 


Gets or sets the data field for this column in the data source.
Syntax
'Declaration
 
Public Property DataField As String
'Usage
 
Dim instance As Column
Dim value As String
 
instance.DataField = value
 
value = instance.DataField
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.

FarPoint.Web.Spread.Column mycol;
mycol=FpSpread1.ActiveSheetView.Columns[0];
string str=mycol.DataField;
TextBox1.Text=str;
Dim mycol As FarPoint.Web.Spread.Column
Dim Str As String
mycol=FpSpread1.ActiveSheetView.Columns(0)
Str=mycol.DataField()
TextBox1.Text=Str
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Column Class
Column Members

 

 


Copyright © GrapeCity, inc. All rights reserved.