예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (bp.getvalue(4) == "1")
     {
         c.Visible = true;
         GridView1.Columns[7].Visible = true;
         cc.Visible         = false;
         GridView1.PageSize = 15;
     }
     else
     {
         if (bp.getvalue(4) == "2")
         {
             GridView1.PageSize = 2;
         }
         else
         {
             GridView1.PageSize = 5;
         }
         c.Visible = false;
         GridView1.Columns[7].Visible = false;
         cc.Visible = true;
     }
     if (!IsPostBack)
     {
         GridView1.DataSource = com.COM_Proc_Sel0("Pc_SeladdressbyPower");
         GridView1.DataBind();
     }
 }