السلام عليكم ..
A local variable named 'x' cannot be declared in this scope because it would give a different meaning to 'x', which is already used in a 'parent or current' scope to denote something else
ممكن احد يفهمني مامعنى رساله الخطا السابقه ومالحل لها !
هذا هو الكود
; int x = 0
(++ for (int x = 0; x < GridView1.Rows.Count; x
{
;(() Total += Convert.ToDouble(GridView1.Rows[x].Cells[6].Text.ToString
; (lblTotal.Text = "مجموع المشتريات يساوي" + Total.ToString() + "of" + x.ToString() + "Product(s
}