Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As SheetView Dim row As Integer Dim value As Object value = instance.GetDataKey(row) |
Parameters
- row
- Row index
Return Value
Object containing the identifier for the specified rowThis 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 Basic | Copy 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 |
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
Reference
SheetView ClassSheetView Members
IDataSourceSupport Interface
DataKeyField Property