Spread for ASP.NET 9.0 Product Documentation
GetDataKey Method
Example 


Row index
Gets the identifier for the specified row if it is visible.
Syntax
'Declaration
 
Public Function GetDataKey( _
   ByVal row As Integer _
) As Object
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim value As Object
 
value = instance.GetDataKey(row)
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.
private void FpSpread1_UpdateCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
{
       Response.Write(e.SheetView.GetDataKey(1).ToString())
}
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 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members
IDataSourceSupport Interface
DataKeyField Property

User-Task Documentation

Binding to a Data Source

 

 


Copyright © GrapeCity, inc. All rights reserved.