DataGrid1.CurrentPageIndex = e.NewPageIndex;这个怎么写不上去啊.
怎么写不上去啊.
private void BindData()
{
string zz="select * from book where(parentid=0) order by posttime DESC";
OleDbDataAdapter da=new OleDbDataAdapter (zz,xx);
DataSet ds=new DataSet ();
DataGrid1.DataSource =ds.Tables ["word"].DefaultView;
DataGrid1.DataBind ();
}
private void DataGrid1_SelectedIndexChanged(object sender, System.EventArgs e)
{
DataGrid1.CurrentPageIndex = e.NewPageIndex;
DataGrid1.DataBind();
}