0

保存したすべてのデータを表示するグリッド ビューがあります。日付検索ボタンをクリックすると、テキスト ボックスに入力した特定の日付のグリッド ビューでデータがバインドされます。しかし、グリッドビューのページャーボタンをクリックして次のページに移動しようとすると、グリッドビューの日付は保存された日付のすべてのページをバインドします。その特定の日付の拘束力のあるデータではありません。私を助けてください...

4

1 に答える 1

2

you can implement PageIndexChanging as below.

protected void GridViewExtUsers1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{

    // Set the index of the new display page. 
    GridView1.PageIndex = e.NewPageIndex;

    // Rebind the GridView control 
    // if on search mode bind search results 
    // otherwise bind all data. 
    // implement your logic in different method
    BindGridView();
}
于 2012-04-29T18:05:03.373 に答える