protected void GridView1_SelectedIndexChanged(object sender, System.EventArgs e) { string id = ((Label)GridView1.Rows[GridView1.SelectedIndex].Cells[0].FindControl("Label18")).Text.ToString(); GridView2.DataSource = admin.orderDetaile(GridView1.SelectedValue.ToString()); GridView2.DataBind(); DetailsView1.DataSource = admin.memDate(id); DetailsView1.DataBind(); }