bonjour
je bloque depuis un bon moment sur ce point.
voilà mon code:
1 2 3 4 5 6 7 8 9 10 11 12
| Form2 appel_form2 = new Form2();
DateTime Date = new DateTime();
DateTime Délais = new DateTime();
DateTime Date_Réalisation = new DateTime();
int nbaction = 0;
foreach (DataGridViewRow ligne in appel_form2.dataGridView1.Rows)
{
if (ligne["Date"].Value < Délais)
nbaction ++;
}
nbaction.ToString(); |
une erreur apparaît au niveau de :
if (ligne["Date"].Value < Délais)
qui s'énonce comme suit:
Cannot apply indexing with [] to an expression of type 'System.Windows.Forms.DataGridViewRow
SVP aidez moi
Partager