Example #1
0
        private void equipmentTableDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 4)
            {
                DataGridView    gv  = (DataGridView)sender;
                DataGridViewRow row = gv.Rows[e.RowIndex];

                int itemId = (int)row.Cells["ID"].Value;

                Form itemDetails = new EquipmentDetails(itemId);
                itemDetails.Show();
            }
        }
Example #2
0
        private void equipmentTableDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 4)
            {
                DataGridView gv = (DataGridView)sender;
                DataGridViewRow row = gv.Rows[e.RowIndex];

                int itemId = (int)row.Cells["ID"].Value;

                Form itemDetails = new EquipmentDetails(itemId);
                itemDetails.Show();
            }
        }