views:

509

answers:

1
+1  A: 

out of the foreach, try

CommandField c = new CommandField();
c.ShowEditButton = true;

c.Columns.Add(c);
michele
GridView1.Columns.Add(c);
JMSA
yep...sorry for the mistake!
michele