Exemplo n.º 1
0
 private void DataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == dataGridView1.Columns["viewOrder"].Index)
     {
         FormViewOrder formViewOrder = new FormViewOrder(e.RowIndex + 1);
         formViewOrder.Show();
     }
 }
Exemplo n.º 2
0
        private void DataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == dataGridView1.Columns["viewOrder"].Index)
            {
                int rowId   = e.RowIndex;
                int orderId = (int)dataGridView1.Rows[rowId].Cells[1].Value;

                FormViewOrder formViewOrder = new FormViewOrder(orderId);
                formViewOrder.Show();
            }
        }