Ejemplo n.º 1
0
        private void picAdd_Click(object sender, EventArgs e)
        {
            QuestionForm form = new QuestionForm();

            form.DataBind();
            if (form.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
            ;
        }
Ejemplo n.º 2
0
 private void picupdate_Click(object sender, EventArgs e)
 {
     if (this.gridView1.FocusedRowHandle >= 0)
     {
         object       data = this.gridView1.GetRow(this.gridView1.FocusedRowHandle);
         QuestionForm form = new QuestionForm();
         form.DataBind(data as Questions);
         if (form.ShowDialog() == DialogResult.OK)
         {
             DataBind();
         }
         ;
     }
 }