DataGrid edit events fire twice

  • Thread starter Thread starter David Rose
  • Start date Start date
D

David Rose

I have noticed that when I use an asp:TemplateColumn (with an ItemTemplate
and an EditItemTemplate) to edit a row in the DataGrid that the EditCommand,
CancelCommand and UpdateCommand handlers fire 2 times for each click.

Is this the normal behavior? If not, what could be causing it?

Thanks.

David Rose
 
You need to rebind the datagrid after setting the EditItemIndex property.
 

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