OnItemCommand and OnSortCommand in same datagrid

berniemeru

New Member
I have created a datagrid w/a button click event.. and it works great..<BR>Then I added a sort event.. but my problem is, whenever i click on a heading, my trace reveals that the OnItemCommand eventhandler is being called, not my OnSortCommand event handler..<BR><BR>here's my datagrid code..<BR><BR><asp:datagrid id="dgFolders" runat="server" OnSortCommand="evtSort" OnItemCommand="evtClick"><BR><BR><BR>whenever i click on a column heading, evtClick gets fired.. If i remove the 'OnItemCommand="evtClick"' from the datagrid, the 'evtSort' fires just like it should..<BR><BR>Anyone got some clues for me?<BR><BR>Thanks,<BR>Kraq
 
Back
Top