Click here to Skip to main content
15,915,750 members

Comments by Member 3864348 (Top 8 by date)

Member 3864348 23-Sep-16 4:01am View    
I have fixed the issue,it was the cache problem.
Thanks for you help anyways.
Member 3864348 22-Sep-16 8:07am View    
I guess the older data are cached somewhere and then when the paged is re-loaded the older data get displayed.
Member 3864348 22-Sep-16 8:04am View    
protected void MyGridView_RowUpdating(object sender,GridViewUpdateEventArgs e)
{
TextBox tbProcessName =(TextBox)MyGridView.Rows[e.RowIndex].FindControl("txtProcessName");

TextBox tbStatus = (TextBox)MyGridView.Rows[e.RowIndex].FindControl("txtStatus");

string ModifiedProcessName = tbProcessName.Text;
string ModifiedStatus = tbStatus.Text;

// Then code to write the changed data back to the xml file.

MyGridView.EditIndex = -1;
LoadData();
}
Member 3864348 22-Sep-16 7:55am View    
There is no database involved in it,the data being shown in the gridview are from an XML file.
Member 3864348 22-Sep-16 7:51am View    
This is how the LoadData() looks

protected void LoadData()
{
// Creates a data table and populate it from data from xml file.have just removed the data table population code to keep this post short.
DataTable dt = new DataTable()
MyGridView.DataSource = dt;
MyGridView.DataBind();
}