예제 #1
0
        private void incidentsDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 6)
            {
                int              i          = e.RowIndex;
                DataGridViewRow  row        = incidentsDataGridView.Rows[i];
                DataGridViewCell cell       = row.Cells[0];
                int              customerID = (int)cell.Value;

                Form customerForm = new frmCustomer();
                customerForm.Tag = customerID;
                customerForm.ShowDialog();
            }
        }
예제 #2
0
        private void incidentsDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 6)
            {
                int i = e.RowIndex;
                DataGridViewRow row = incidentsDataGridView.Rows[i];
                DataGridViewCell cell = row.Cells[0];
                int customerID = (int)cell.Value;

                Form customerForm = new frmCustomer();
                customerForm.Tag = customerID;
                customerForm.ShowDialog();
            }
        }