I am having a problem when I am updating my rows. The data is being typed in is getting overriden by the data that was previously there. Does anyone know how to fix this?
Code:
protected void HFReportGrid_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
TextBox Points = HFReportGrid.Rows[e.RowIndex].FindControl("txtPoints") as TextBox;
TextBox Comment = HFReportGrid.Rows[e.RowIndex].FindControl("txtComment") as TextBox;
string temp = "Update HFReportComment set ManagerPoints = " + Points.Text + ", Comment = " + Comment.Text;
HFReportGrid.EditIndex = -1;
BindGridView(temp);
}