Beispiel #1
0
        private void cmdedit_Click(object sender, EventArgs e)
        {
            if (dataGridView1.CurrentRow != null)
            {
                int    col = 0;
                int    row = dataGridView1.CurrentRow.Index;
                string val = dataGridView1[col, row].Value.ToString();

                std       st    = new std();
                DataTable datat = new DataTable();
                st.stdno = val;
                datat    = st.Selectforedit();

                editstd es = new editstd();
                es.txtstdno.Text = val;
                es.Search_Click();
                es.ShowDialog();

                if (btnfilter.Enabled == true)
                {
                    btnfilter.PerformClick();
                }
                else
                {
                    DataTable dt = new DataTable();
                    dt = st.SelectForView();
                    dataGridView1.DataSource = dt;
                }
            }
        }
Beispiel #2
0
        private void btnBasicInfoEdit_Click(object sender, EventArgs e)
        {
            editstd es = new editstd();

            es.txtstdno.Text = txtstdno.Text;
            es.Search_Click();
            es.ShowDialog();

            fillBasicInfo();
        }