SortCommand not firing on DataGrid, EVENTTARGET=","

L

Leaf

Greetings,

I've read all there is on why SortCommand firing can fail in this
group, and haven't found a solution. Essentially the SortCommand
doesn't fire, no matter what I do. I've set the handler in code, put an
OnSortCommand= in the HTML, tried all different initialization
combinations, nothing. Oddly, on one of my pages it works great. On two
others, it doesn't work at all.

Here's what's weird - when I click on the header link for sorting, my
__EVENTTARGET is equal to ",". When I hover over the link, I get the
usual:

javascript:__doPostBack('DataGrid1$_ctl1$_ctl0','')

and when I look at the generated HTML, it all looks fine. But a
breakpoint on Page_Load() reveals __EVENTTARGET is ",". On my working
page, it is the proper "DataGrid1$:ctl1$:ctl0".

I've got EnableViewState=True. Any thoughts?

thanks, Leaf
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top