1.没有这个属性。要显示所有的数据要在帮定datagrid的时候,先判断帮定的数据源的Count就是Datagrid的数据总纪录数。
2.手动添加跳转button,在button_click中写跳转事件.
3.可以在属性生成器中,分页,设置该属性。也可以在<pagerStyle>中进行设置,mode = ""
2.手动添加跳转button,在button_click中写跳转事件.
3.可以在属性生成器中,分页,设置该属性。也可以在<pagerStyle>中进行设置,mode = ""
1我取试试看
2请详细点
System.Data.OracleClient.OracleDataAdapter OraAdaCASE_M_AJZLZ = new System.Data.OracleClient.OracleDataAdapter(PutCrackBrief,this.OraConnData);
System.Data.DataSet DsCASE_M_AJZLZ = new DataSet();
OraAdaCASE_M_AJZLZ.Fill(DsCASE_M_AJZLZ,StartIndex,PageSize,"CASE_M_AJZLZ");this.DataListPutCrack.DataSource = DsCASE_M_AJZLZ.Tables["CASE_M_AJZLZ"].DefaultView;
this.DataListPutCrack.DataBind();int RecordCount = DsCASE_M_AJZLZ.Tables["CASE_M_AJZLZ"].Rows.Count;//记录总数2.
private void navigation(int p_Refresh)
{
navigation DataGridNavigation = new navigation(this.DataGridAttachList,this.LabNow,this.LabCount,this.LinkButfirst,this.LinkButprevious,this.LinkButnext,this.LinkButlast);
if(p_Refresh == 0)
{
this.LoadSufferList(this.Session["zcyjh"].ToString().Trim());
}
}if(this.TBoxGoNumber.Text != "")
{
if(System.Convert.ToInt32(this.TBoxGoNumber.Text) <= 0)
{
this.DataGridAttachList.CurrentPageIndex = 0;
}
else if(System.Convert.ToInt32(this.TBoxGoNumber.Text) >= this.DataGridAttachList.PageCount)
{
this.DataGridAttachList.CurrentPageIndex = this.DataGridAttachList.PageCount - 1;
}
else
{
this.DataGridAttachList.CurrentPageIndex = System.Convert.ToInt32(this.TBoxGoNumber.Text) - 1;
}
this.navigation(0);
this.TBoxGoNumber.Text = "";
}3.
<PagerStyle Visible="True" NextPageText="下一页>>" PrevPageText="<<上一页" HorizontalAlign="Center" ForeColor="Black" BackColor="White"></PagerStyle>4.
那不如自已重新写导航按钮.
http://xml.sz.luohuedu.net/xml/ShowList.asp?id=1asp.net快速入门
http://chs.gotdotnet.com/quickstart/aspplus/default.aspx
你的第一个问题解决了,但是怎么在页面里显示这个recordcount?
3解决了,我的mode设置错误
4我没这个本事
2试试
作导航就可以了。