Last post Sep 19, 2008 04:03 PM by marcind
Sep 19, 2008 02:52 AM|balancedu|LINK
I try to implement a GridView which can insert data by using the footer row. I did it by using ObjectDataSource before.
I put a imagebutton at Footer, and set the ImageButton.CommandName = "Insert".
If I use ObjectDataSource, the only thing I need to is catch up the Command Insert at GridView's ItemCommand Event and fire up the ObjectDataSource.Insert().
But it seems like the EntityDataSource doesn't have function like insert, very confusing how to fire up the Insert event like the DetailsView did with the EntityDataSource.
Can anyone help?
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
if (GridView1.FooterRow == null)
GridView1.ShowFooter = false;
// ObjectDataSource1.Inser() If using ObjectDataSource
Sep 19, 2008 04:03 PM|marcind|LINK
This is a generaly EntityDataSource question. Have you tried the
Entity Framework forum?