示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable dt = order.GetAllOrder();

        GridView1.DataSource = dt;
        GridView1.DataBind();
    }
示例#2
0
        private void btnSelect_Click(object sender, EventArgs e)
        {
            string txt = cmbInformation.SelectedItem.ToString();

            switch (txt)
            {
            case "教材名称":
                dgvOrder.DataSource = bllo.GetAllOrder(1, txtDelect.Text);
                break;

            case "ISBN码":
                dgvOrder.DataSource = bllo.GetAllOrder(2, txtDelect.Text);
                break;

            case "作者":
                dgvOrder.DataSource = bllo.GetAllOrder(3, txtDelect.Text);
                break;

            case "出版社":
                dgvOrder.DataSource = bllo.GetAllOrder(4, txtDelect.Text);
                break;
            }
        }
示例#3
0
 private void dgvOrderInfo()
 {
     dgvOrder.DataSource       = bllo.GetAllOrder(0, null);
     dgvOrder.Columns[0].Width = 250;
     dgvOrder.Columns[1].Width = 200;
     dgvOrder.Columns[2].Width = 100;
     dgvOrder.Columns[3].Width = 200;
     dgvOrder.Columns[4].Width = 100;
     dgvOrder.Columns[5].Width = 94;
 }