Beispiel #1
0
        private void gridLoadTopping_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int indexRow;

            indexRow = e.RowIndex;
            DataGridViewRow row = gridLoadTopping.Rows[indexRow];

            orderDTO.tenTopping = row.Cells[0].Value.ToString();

            if (e.ColumnIndex == 2)
            {
                orderBUS.DeleteTopping(orderDTO);
                LoadGridTopping();
            }
        }