Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は gridview と datapager を使用していますが、ページャーを非表示にする方法が見つかりませんでした。私はこのコードを試しました:
pager.Visible = (pager.PageSize < pager.TotalRowCount);
それを達成する他の方法はありますか?
OnDataBound イベントに追加すると、このコードを使用できます。
protected void GridView1_DataBound(object sender, EventArgs e) { pager.Visible = (pager.PageSize < pager.TotalRowCount); }