List Info

Thread: SortCommend event is being fired twice




SortCommend event is being fired twice
user name
2006-08-01 11:26:19
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
Anup.dawaregmail.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---

SortCommend event is being fired twice
user name
2006-08-08 12:38:52
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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://groups.g
oogle.com/group/aspnet
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )