G
Guest
hey all,
i'm trying to update a row in my gridview. i loaded the gridview from an xml
file (dataset.readxml). now i'm trying to wire up all the CRUD events and i'm
having trouble with the update event.
Here was my first instinct which doesn't work:
protected void GridView1_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
GridView1.UpdateRow(e.RowIndex, false);
ds.WriteXml(Server.MapPath("~/App_Data/LeftLinks.xml"));
GridView1.EditIndex = -1;
DisplayGridView();
}
is there a better approach with what i'm trying to do?
thanks,
rodchar
i'm trying to update a row in my gridview. i loaded the gridview from an xml
file (dataset.readxml). now i'm trying to wire up all the CRUD events and i'm
having trouble with the update event.
Here was my first instinct which doesn't work:
protected void GridView1_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
GridView1.UpdateRow(e.RowIndex, false);
ds.WriteXml(Server.MapPath("~/App_Data/LeftLinks.xml"));
GridView1.EditIndex = -1;
DisplayGridView();
}
is there a better approach with what i'm trying to do?
thanks,
rodchar