作成日: 2017/05/16 最終更新日: 2017/05/16
文書種別
使用方法
詳細
ページングが実行された場合は、サーバー側でTopRowChangedイベントが発生致します。
また、現在のページインデックスと表示中のページの先頭行のインデックスを取得することも可能です。
◎サンプルコード(VB)
◎サンプルコード(C#)
また、現在のページインデックスと表示中のページの先頭行のインデックスを取得することも可能です。
◎サンプルコード(VB)
Private Sub FpSpread1_TopRowChanged(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.SpreadCommandEventArgs) Handles FpSpread1.TopRowChanged
' 表示中の先頭行インデックス
System.Diagnostics.Debug.WriteLine(e.SheetView.TopRow)
' 現在のページ
System.Diagnostics.Debug.WriteLine(FpSpread1.CurrentPage)
End Sub
' 表示中の先頭行インデックス
System.Diagnostics.Debug.WriteLine(e.SheetView.TopRow)
' 現在のページ
System.Diagnostics.Debug.WriteLine(FpSpread1.CurrentPage)
End Sub
◎サンプルコード(C#)
protected void fpSpread1_TopRowChanged(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
{
// 表示中の先頭行インデックス
System.Diagnostics.Debug.WriteLine(e.SheetView.TopRow);
// 現在のページ
System.Diagnostics.Debug.WriteLine(fpSpread1.CurrentPage);
}
{
// 表示中の先頭行インデックス
System.Diagnostics.Debug.WriteLine(e.SheetView.TopRow);
// 現在のページ
System.Diagnostics.Debug.WriteLine(fpSpread1.CurrentPage);
}
旧文書番号
40350