Exemplo n.º 1
0
      private void btnNew_Click(object sender, EventArgs e)
      {
          frmNewSource frm = new frmNewSource();
 
          frm.ShowDialog();
          ReloadGridview();
      }
Exemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (dgSources.Rows.Count <= 0)
            {
                return;
            }

            frmNewSource frm = new frmNewSource(dgSources.SelectedRows[0].Cells["id"].Value+"",dgSources.SelectedRows[0].Cells);
        
            frm.ShowDialog();
            this.Show();
            ReloadGridview();
        }