1.没有这个属性。要显示所有的数据要在帮定datagrid的时候,先判断帮定的数据源的Count就是Datagrid的数据总纪录数。
2.手动添加跳转button,在button_click中写跳转事件.
3.可以在属性生成器中,分页,设置该属性。也可以在<pagerStyle>中进行设置,mode = ""

解决方案 »

  1.   

    3楼上的,我是直接写代码的,没有vs,因为用了VS,用是能用,但写的东西自己都看不懂。
    1我取试试看
    2请详细点
      

  2.   

    先判断帮定的数据源的Count,怎么判断?
      

  3.   

    1.
    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="下一页&gt;&gt;" PrevPageText="&lt;&lt;上一页" HorizontalAlign="Center" ForeColor="Black" BackColor="White"></PagerStyle>4.
    那不如自已重新写导航按钮.
      

  4.   

    里面有好多
    http://xml.sz.luohuedu.net/xml/ShowList.asp?id=1asp.net快速入门
    http://chs.gotdotnet.com/quickstart/aspplus/default.aspx
      

  5.   

    liangshaojun(君猎)
    你的第一个问题解决了,但是怎么在页面里显示这个recordcount?
    3解决了,我的mode设置错误
    4我没这个本事
    2试试
      

  6.   

    不用重写类,只要不用datagrid的导航条,用手动添加的button
    作导航就可以了。
      

  7.   

    1、Label3.Text="共 "+ds.Tables[0].Rows.Count.ToString()+" 条记录";
      

  8.   

    datagrid记录统计,分页跳转 我写好了一个,要的给我邮箱
      

  9.   

    你可以用这个免费控件来实现分页:http://www.webdiyer.com
      

  10.   

    纪录总数 ds.Tables[0].Rows.Count