ASP .Net Datagrid Itemcommand Event is not fired

By | March 21, 2006 | 1 Comment
Category: ASP .Net Tags: ,

Check it out for event handler. It is quite possible that if you cut and paste the datagrid from one place to another, it will loose all the event handlers which were previously defined.
If you think that event handler is defined correctly, check out how the datasource is bound to the datagrid. Your code should bind the datasource when there is no postback.

If not Page.IsPostback Then
End If

Otherwise on each postback, the datagrid will be bound to the datasource resulting in ItemCommand Event not fired.

About Vishal Monpara

Vishal Monpara is a full stack Solution Developer/Architect with 13 years of experience primarily using Microsoft stack. He is currently working in Retail industry and moving 1's and 0's from geographically dispersed hard disks to geographically dispersed user leveraging geographically dispersed team members.

One thought on “ASP .Net Datagrid Itemcommand Event is not fired

  1. Sorna Kumar

    It is very useful tip.
    I had done the second mistake.
    afer verifying it i have cleared the error

Leave a Reply

Your email address will not be published. Required fields are marked *