gridview updating

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top