469,929 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

UpdateCommand event help required please

I am very new to programming and in particular datagrids
and am finding it difficult to add code to the event
handler below to run an UpdateCommand on a row in my
datagrid. Could someone please help me out code into this
event handler so as when I click Update the database is
updated with my ammendments in the datagrid.
I would really appreciate your help.

private void DataGrid2_EditCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid2.EditItemIndex = e.Item.ItemIndex;
DataGrid2.DataBind();
}

private void DataGrid2_CancelCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid2.EditItemIndex = -1;
DataGrid2.DataBind();
}
private void DataGrid2_UpdateCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{

}
Nov 16 '05 #1
0 887

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

29 posts views Thread by Patrick | last post: by
1 post views Thread by niki | last post: by
3 posts views Thread by Jim in Arizona | last post: by
1 post views Thread by SAL | last post: by
reply views Thread by stuart_dent | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.