public void BindDD()
 {
     TXTExplanID.BindDD();
     if (sematid != "2")
     {
         TXTIsOK.Items.Remove(TXTIsOK.Items.FindByValue("1"));
         TXTIsOK.Items.Remove(TXTIsOK.Items.FindByValue("0"));
         GridView1.Columns[2].Visible = false;
         GridView1.Columns[1].Visible = false;
     }
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TXTExplanID.ButtonClick += new EventHandler(TXTExplanID_ButtonClick);

            if (!Page.IsPostBack)
            {
                TXTExplanID.BindDD();
                BindDD();
                BindGrid();
            }
        }