views:

14

answers:

0

I have a DevXpress ASPXGridview, and I am using ObjectDataSource for custom paging. This is my objectDataSource code on aspx page.

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetItems" EnablePaging="true" TypeName="BLL.Item" StartRowIndexParameterName="startIndex" MaximumRowsParameterName="pageSize" SelectCountMethod="GetTotalItems" > <SelectParameters> <asp:ControlParameter ControlID="hfNumber" Name="number" Type="string" /> <asp:ControlParameter ControlID="hfDesc" Name="description" Type="string" /> </SelectParameters> </asp:ObjectDataSource>

When I put breakpoints in BLL code, I see that it always executes with startIndex and pageSize as 0. It does pass the other two selectparameters correctly. Also the SelectCountMethod (GetTotalItems) never gets executed.