Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > GridView EnableSortingAndPagingCallbacks

Reply
Thread Tools

GridView EnableSortingAndPagingCallbacks

 
 
swesorick@gmail.com
Guest
Posts: n/a
 
      11-21-2005
I'm trying to figure out the Sorting and PagingCallbacks in the asp.Net
2.0 GridView Control. Whenever I set EnableSortingAndPagingCallbacks
to true, I cannot get sorting to work. Paging works, but not sorting.
>From viewing the trace log, I can see that the page fires each time you

click on a sorting link or paging link.

The GridView sorting and paging events do not seem to fire when
EnableSortingAndPagingCallbacks is set to true. Somehow the GridView
is smart enough to switch the paging during the callback, but not
switch the sorting. In the trace, I can even see the __CALLBACKID and
__CALLBACKPARAM form variables. Unfortunately, I couldn't decipher how
to read the __CALLBACKPARAM variable. What am I missing, here?

<asp:GridView ID="grdCustomers" runat="server" AllowSorting="True"
AutoGenerateColumns="False" AutoGenerateDeleteButton="True"

AutoGenerateEditButton="True"
EnableSortingAndPagingCallbacks="True"
EnableViewState="True" AllowPaging="true">
<PagerSettings NextPageText="next" PreviousPageText="back" />
<Columns>
<asp:BoundField DataField="CustomerName"
HeaderText="Customer Name" SortExpression="CustomerName" />
<asp:BoundField DataField="AccountNum" HeaderText="Axapta
ID" SortExpression="AccountNum" />
</Columns>
</asp:GridView>

 
Reply With Quote
 
 
 
 
freeflyrw
Guest
Posts: n/a
 
      01-20-2006
Hi, Same issue. Anyone any solution or input.
Thanks.

"" wrote:

> I'm trying to figure out the Sorting and PagingCallbacks in the asp.Net
> 2.0 GridView Control. Whenever I set EnableSortingAndPagingCallbacks
> to true, I cannot get sorting to work. Paging works, but not sorting.
> >From viewing the trace log, I can see that the page fires each time you

> click on a sorting link or paging link.
>
> The GridView sorting and paging events do not seem to fire when
> EnableSortingAndPagingCallbacks is set to true. Somehow the GridView
> is smart enough to switch the paging during the callback, but not
> switch the sorting. In the trace, I can even see the __CALLBACKID and
> __CALLBACKPARAM form variables. Unfortunately, I couldn't decipher how
> to read the __CALLBACKPARAM variable. What am I missing, here?
>
> <asp:GridView ID="grdCustomers" runat="server" AllowSorting="True"
> AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
>
> AutoGenerateEditButton="True"
> EnableSortingAndPagingCallbacks="True"
> EnableViewState="True" AllowPaging="true">
> <PagerSettings NextPageText="next" PreviousPageText="back" />
> <Columns>
> <asp:BoundField DataField="CustomerName"
> HeaderText="Customer Name" SortExpression="CustomerName" />
> <asp:BoundField DataField="AccountNum" HeaderText="Axapta
> ID" SortExpression="AccountNum" />
> </Columns>
> </asp:GridView>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView EnableSortingAndPagingCallBacks Select command. MikeS ASP .Net Web Controls 4 11-16-2006 02:25 AM
GridView & EnableSortingAndPagingCallbacks =?Utf-8?B?RGVtZXRyaQ==?= ASP .Net 1 05-29-2006 02:44 PM
how EnableSortingAndPagingCallbacks works? xchen.kevin@gmail.com ASP .Net Web Controls 1 05-28-2006 03:55 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
EnableSortingAndPagingCallbacks run time setup bug? =?Utf-8?B?U3VuU21pbGU=?= ASP .Net 0 03-09-2006 12:12 AM



Advertisments