Questions tagged as 'foreach'

1
answer

How to go to the column of a datagridview c # foreach

I need help how to do this I need to go through a column (amount) of the datagridview when the amount reaches 0 so that it does not let me insert products that do not exist and leave me a message that there is no stock (no products) Any ideas?...
asked by 13.04.2018 / 16:40
1
answer

Detect if I change the value of a key in the next round of the foreach?

I need to find out if the value of a key changes on the next round Ex: if($manzanas[$key]['cantidad'] == $manzanas[$key + 1]['cantidad']){ echo 'La cantidad de manzanas es la misma'; } else { echo 'La cantidad de manzanas cambio'; }...
asked by 12.01.2018 / 17:58