Example #1
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            int rowIndex = dataGridView1.CurrentRow.Index;

            customerVendorOperation modifyOpFrame = new ModifyCustomerVendor(GetDataRowInShowTableFromIndex(rowIndex), customerOrVendor);

            modifyOpFrame.ShowDialog();
            FillTheDataGrid();
        }
Example #2
0
        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();
        }
Example #3
0
 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();
 }
Example #4
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            int rowIndex = dataGridView1.CurrentRow.Index;

            customerVendorOperation modifyOpFrame = new ModifyCustomerVendor(GetDataRowInShowTableFromIndex(rowIndex), customerOrVendor);
            modifyOpFrame.ShowDialog();
            FillTheDataGrid();
        }