469,945 Members | 2,312 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

gridview updating

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
Apr 8 '07 #1
0 1391

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Brian McClellan | last post: by
1 post views Thread by =?Utf-8?B?Q2hyaXM=?= | last post: by
11 posts views Thread by SAL | last post: by
reply views Thread by BizWeb | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.