I'm using ReportViewer with ObjectDataSource which looks like this:
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="Select"
MaximumRowsParameterName="maxRows"
SelectCountMethod = "SelectCount"
StartRowIndexParameterName="startRow"
TypeName="SomeNamespace.ReportLogicClass"
EnablePaging="true"
OnSelecting="ReportView_Selecting"
OnSelected="ReportView_Selected"
>
I'm also setting maxRows and startRow parameters in OnSelecting event handler.
My problem is that I can't make ReportViewer's paging to work. I always get page links disabled with "Page 1 of 1" written.
Is there something I can do, cause maybe I'm missing out on something? One other thing, when passing parameters to Select method I should send startRow parameter from the ReportViewer's paging control and right now I don't see a way for extracting current pageIndex from it.
Should I just forget about using ReportViewer, the way I am now?
10x in adv