GridView ObjectDataSource question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all
I implemented the update process of gridview through the RowCommand handler
myself, however, when i check update, it show error: updating is not
supported by OjbectDataSource unless the UpdateMethod is specified.

What problem, since i customize the update process through the rowcommand
handler, the do not want the updatemethod of datagrid to run!
How can do that
 
Not positive what you are doing here but you can wire up the Updating event
of your ODS and then cancel the update:

protected void ObjectDataSourceMain_Updating(object sender,
ObjectDataSourceMethodEventArgs e)
{
e.Cancel = true;
}
 

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

Back
Top