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


Glossary Item Box

Gets or sets an array of strings that contains the names of the key fields for the data source for this sheet.

Syntax

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

Property Value

String containing the data key names

Example

C#Copy Code
FpSpread1.ActiveSheetView.DataKeyNames = new String[] {"LName", "FName"};
Visual BasicCopy Code
FpSpread1.ActiveSheetView.DataKeyNames = New String() {"LName", "FName"}

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.