我调用了一个web service 得到的DateSet 用了个分页控件 可就是分不出来 请高手指点
代码如下
     InPageIndex = Request.QueryString["page"] != null ? Convert.ToInt32(Request.QueryString["page"].ToString()) : 1;
            if (!IsPostBack)
            {
                Bind();
            }
        }        private void Bind()
        {
            DataSet ds = new cn.com.webxml.www.DomesticAirline().getDomesticAirlinesTime("北京", "上海", "2010-08-29", "");
            GridView1.DataSource = ds.Tables[0];
            
   
            int InCount = ds.Tables[0].Rows.Count;
            DataPage1.TotalRecordCount = InCount;//获取记录总数
            DataPage1.ShowPageNumberCount = 7;//每页显示的页码数
            DataPage1.ShowRecordCount = InPageSize;//分页后每页显示的条数
            DataPage1.QueryString = "page";
            DataPage1.QueryStringKeyWord = "page";
            GridView1.DataBind();