Exemple #1
0
        private void btnedit_Click_1(object sender, EventArgs e)
        {
            if (grdDataViewer.CurrentRow != null)
            {
                int col  = 0;
                int irow = grdDataViewer.CurrentRow.Index;

                frmHozoorEdit fge = new frmHozoorEdit();

                fge.OLD_STDNO   = grdDataViewer["stdno", irow].Value.ToString();
                fge.OLD_CLASSNO = grdDataViewer["classno", irow].Value.ToString();
                fge.OLD_DATE    = grdDataViewer["date", irow].Value.ToString();
                fge.idsearch_Click();
                fge.ShowDialog();


                if (btnfilter.Enabled == true)
                {
                    btnfilter.PerformClick();
                }
                else
                {
                    hozoorclass pm = new hozoorclass();
                    DataTable   dt = new DataTable();
                    dt = pm.Select();
                    grdDataViewer.DataSource = dt;
                }
            }
        }
Exemple #2
0
        private void btnHozoorEdit_Click(object sender, EventArgs e)
        {
            int irow = grdDataViewHozoor.CurrentRow.Index;


            frmHozoorEdit fge = new frmHozoorEdit();

            fge.OLD_STDNO   = grdDataViewHozoor["stdno", irow].Value.ToString();
            fge.OLD_CLASSNO = grdDataViewHozoor["classno", irow].Value.ToString();
            fge.OLD_DATE    = grdDataViewHozoor["date", irow].Value.ToString();
            fge.idsearch_Click();
            fge.ShowDialog();

            fillHozoorInfo();
        }