hi
i'm trying to edit gridview rows.
the grid columns are template cplumns.
i added the commandfield buttons for update.
i wrote a rowupdating event:
MonthTable.Rows[e.RowIndex]["FirstEnter"] = ((TextBox)(MonthGridView.Rows[e.RowIndex].Cells[6].Controls[0])).Text;
on runtime i get this error:
Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox'.
what have i done wrong ?