if ( e.RowIndex < 0 || e.ColumnIndex < 0 ) { return; } string deviceType = "", deviceName = "", modelNumber = "", macAddress = ""; string isActive, isInUse; int deviceId=0; deviceId = int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value + ""); deviceType = dataGridView1.Rows[e.RowIndex].Cells[1].Value + ""; deviceName = dataGridView1.Rows[e.RowIndex].Cells[2].Value + ""; modelNumber = dataGridView1.Rows[e.RowIndex].Cells[3].Value + ""; macAddress = dataGridView1.Rows[e.RowIndex].Cells[4].Value + ""; isActive = dataGridView1.Rows[e.RowIndex].Cells[5].Value + ""; isInUse = dataGridView1.Rows[e.RowIndex].Cells[6].Value + "";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)