我用语句查完信息后显示在Gridview中,但是分页功能不好使.一点下一页就没了.如何解决啊?
protectedvoidGridView1_SelectedIndexChanged(objectsender,EventArgse){}protectedvoidGr...
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
DataTable dt = (DataTable)GetDataItem();
GridView1.DataSource = dt.DefaultView;
GridView1.DataBind();
}这样不对,应该怎样改啊? 展开
{
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
DataTable dt = (DataTable)GetDataItem();
GridView1.DataSource = dt.DefaultView;
GridView1.DataBind();
}这样不对,应该怎样改啊? 展开
2个回答
2007-03-13
展开全部
这个需要发代码
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询