この質問は一般的なようで、私はすでにこの回答を調べました。
残念ながら、私のページはまだページ化されていません。C# でのコードは次のようになります。
SqlCommand command = new SqlCommand("(SELECT ......", Connection);
SqlDataAdapter myAdapter = new SqlDataAdapter(command);
DataTable dt = new DataTable();
myAdapter.Fill(dt);
command.Connection = connection;
command.Connection.Open();
GridView1.DataSource = dt;
GridView1.DataBind();
GridView1.AllowPaging = true;
GridView1.PageSize = 15;
command.Connection.Close();
command.Connection.Dispose();
残念ながら、これを行うと、ページングが表示されません。私は何か間違ったことをしていますか?
ありがとう