In my application I am using a datagrid, now I m implementing sorting for that datagrid,
I am changing the flag for ascending and descending when SortCommand event of datagrid is fired.
Now the problem I am facing is that the Sort Command event is being fired twice even if I click the header in datagrid only once thus my flag is getting reset to the original value.
(I know that the event is first raised during the restoration of the page's view state. The second notification arrives when the page is being built.)
(I am using .Net 1.1)
Please help me out in this!!