SortCommend event is being fired twice

A

Anup

Hi Group,

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!!

Thanks,

Anup Daware
(e-mail address removed)
 
P

Patrick.O.Ige

Post some snippet code.
You must have it somewhere else thats why is firing twice
Patrick
 
A

Anup Daware

Got the answer to this :)
I registered the event as well as set the value of
OnSortCommand="SortCommand......"
so when I removed it from properties of datagrid the problem is solved

<Thanks Patrick you pointed it correctly>

Thanx,
Anup Daware
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top