private void toolStripButton2_Click(object sender, EventArgs e) { int rowIndex = dataGridView1.CurrentRow.Index; customerVendorOperation modifyOpFrame = new ModifyCustomerVendor(GetDataRowInShowTableFromIndex(rowIndex), customerOrVendor); modifyOpFrame.ShowDialog(); FillTheDataGrid(); }
private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex < 0) { return; //this happens when double click the column head. } customerVendorOperation ModifyOpFrame = new ModifyCustomerVendor(GetDataRowInShowTableFromIndex(e.RowIndex), customerOrVendor); ModifyOpFrame.ShowDialog(); FillTheDataGrid(); }
private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex < 0) { return; //this happens when double click the column head. } customerVendorOperation ModifyOpFrame = new ModifyCustomerVendor(GetDataRowInShowTableFromIndex(e.RowIndex),customerOrVendor); ModifyOpFrame.ShowDialog(); FillTheDataGrid(); }