Exemplo n.º 1
0
        private void GridViewBind()
        {
            string searchinfo = this.DropDownList1.Text;

            if (searchinfo == "未还书")
            {
                GridView1.DataSource = MyUtils.AllUserNowBorrow();
                GridView1.DataBind();
            }
            else if (searchinfo == "已还书")
            {
                GridView2.DataSource = MyUtils.AllUserHisBorrow();
                GridView2.DataBind();
            }
        }