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


row
Row index

Glossary Item Box

Gets the identifier for the specified row if it is visible.

Syntax

Visual Basic (Declaration) 
Public Function GetDataKey( _
   ByVal row As Integer _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim value As Object
 
value = instance.GetDataKey(row)
C# 
public object GetDataKey( 
   int row
)

Parameters

row
Row index

Return Value

Object containing the identifier for the specified row

Example

This example returns the key for the specified row after an update.
C#Copy Code
private void FpSpread1_UpdateCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
{
       Response.Write(e.SheetView.GetDataKey(1).ToString())
}
Visual BasicCopy Code
Private Sub FpSpread1_UpdateCommand(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.SpreadCommandEventArgs) Handles
FpSpread1.UpdateCommand

      Response.Write(e.SheetView.GetDataKey(1).ToString())

End Sub

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.