I have make a web page in ASP.NET with a datagrid. When you click on the header the datagrid sort on that column. I use the event datagrid.SortCommand for it.

When I'm testing I notice that the one moment the event occur when I click on a header and on another moment the event doesn't occur.

Does anyone know why this happens and how this can be solved?

Thank you

Annneke