private void dg_head_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                e.Handled = true;
                e.SuppressKeyPress = true;

                if (dg_head.SelectedRows.Count == 1)
                {
                    int Id = int.Parse(dg_head.SelectedRows[0].Cells["LoanId"].EditedFormattedValue.ToString());
                    Frm_LoanSanction F = new Frm_LoanSanction();
                    F.Show();
                    F.FillData(Id);
                }
            }
        }
Ejemplo n.º 2
0
 private void loanSantionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Frm_LoanSanction F = new Frm_LoanSanction();
     F.Show();
 }