.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Restrict number of rows per page

Posted By:      Posted Date: September 25, 2010    Points: 0   Category :Sql Server


As I deploy reports, based on the no of records in result set, I get a scroller on the right hand side. How can I disable the scroller? I guess I can disable the scroller by restricting the no of rows being displayed.. eg: show 10 records per page. Any idea how do I set no of rows per page?



View Complete Post

More Related Resource Links

Report, Change The Number Of Rows Per Page


I am fairly new to reporting services and recently created a simple tabular report.  There is one table which queries the database and I would like to change the table so there are more than 25 rows of data per page.  How do I do this? 

Also it would be advantageous to know how to set the report to only create a new page for every different item in a column.  For eg if I have various data for each date, I would like to only create a new page when the date changes so that all data for a specific date is on one page etc etc.

Many Thanks

Add Total Problem while grouping and limiting number of rows in a page



I have a report in which first column is CITY and consists of 5 data (5 cities),all other columns are grouped w.r.t CITY, i.e in one city there can be 100s of other column data, last column of report is INCOME. If I right click on [INCOME] field and select ADD TOTAL then it gives citywise total, but I limited only 10 records per page and pagebreak  option is selected at end of the CITY group. When perform the same operation now it gives pagewise sum not the groupwise, please rectify my approach if I am wrong else suggest the solution.

Restricting number of rows in a set

Hi All, Is it possible to restrict the number of rows which may come in a set in MDX ? WITH SET set1 AS Order ( { Filter ( [DimContract].[Contract Acc].[Contract Acc].MEMBERS , (NOT IsEmpty([Measures].[Consumption])) OR (NOT IsEmpty([Measures].[SampleSize])) ) } ,[Measures].[Consumption] ,ASC ) Say if i have a set like above , then can we restirct the number of contracts which may come in this set ?

Expand rows in a data grid to show details in the same page

<asp:templatecolumn headertext="Purchase Order"> <headerstyle horizontalalign="center"></headerstyle> <itemstyle horizontalalign="center"></itemstyle> <itemtemplate> <%# DataBinder.Eval(Container.DataItem, "PurchaseOrder") %> </itemtemplate> </asp:templatecolumn> <asp:templatecolumn headertext="Order"> <headerstyle horizontalalign="center"></headerstyle> <itemstyle horizontalalign="center"></itemstyle> <itemtemplate> <a href="OrderDetail.aspx?Order=<%# DataBinder.Eval(Container.DataItem, "OrderNumber")%>"> <%# DataBinder.Eval(Container.DataItem, "OrderNumber") %> </a> </itemtemplate> </asp:templatecolumn> <asp:templatecolumn headertext="Ack Date"> <headerstyle horizontalalign="center"></headerstyle> <itemstyle horizontalalign="center"></itemstyle> <itemtemplate> <%# DataBinder.Eval(Container.DataItem, "AcknowledgeDate") %> </itemtemplate> </asp:templ

ASP.NET Events and Pageload not firing when Datagrid containing large number of rows of data

Hi All, I have a datagrid in aspx page.Inside of datagrid i am using around 15 controls such as Button,dropdownlist and text box controls.Once the datagrid binds then the events in the aspx page not firing.Issue occured when the number of rowsgreater than 500.The number of rows less then its works fine.If anybody knows the solution please let me know."Platform i am working on ASP.NET1.1"Regards Hareesh

GridView Pager not showing proper number of rows

I have created an out-of-the-box  (default everything) ASP.NET Dynamic Data Entities Web Site using VS2010, C# and the .NET Framework 4. Created an ADO.NET Entity Data Model based off a MS SQL 2008 R2 database and registered that EF data model for my dynamic data. Everything works great except for the one change I would like to make. By default, the GridViewPager.ascx file provides the values 5, 10, 15 and 20 in the dropdown for GridView's "Results per page" option. I would like to change that to 10, 20, 30 and 40 - with 40 being the default selected option. I went to the code behind file and modified it to have the values I am wanting. Those values now show in the dropdown, and work if I select them. Problem: when the page is first rendered only 10 rows will show. How can I change this? Any help would be greatly appreciated.   Thanks

pass number of rows of Gridview to a javascript function

using vb.net/asp.net 2005.I need to pass the number of rows of the Gridview to a javascript function does anyone know how to do this?  thanks

Creating a form with an unknown number of rows

Hi everyone, I'm pretty new at ASP .NET but not to ASP.  I've got a form I need to create where I don't know how many entries will be added.  It has the following format: "Age"             "Duration"      "Period of Duration"     "etc..." Last30Days 1-5 Months ago 6-11 Months ago Age Age Age etc. So the Age column always has the first 3 options and then an unknown number of Age values that can be inserted.  I've created a table that has the first four fields (Last30days, 1-5months, 6-11months, age)  and I was thinking I could just order by those 4 columns for display.  The problem I have is I'm not sure on how to proceed.  Does anyone have any good ideas on how to handle this situation?  Ideally data entry people could use the same form for both entering and displaying the data.  Thanks.

"Results Per Page" and "Paging Number" not retained when set by user

When a user selects the "results per page" to another number other than the default OR a user advances to a higher page number in the GridView other than page "1".  The settings are not retained when going between the "list.aspx" and "edit.aspx".  The user has to reset the "results per page" and scroll through the paging to get back to the "page number" they were at when they decided to edit the data. List --> Edit --> List Is it possible for the application to remember where the user was at after performing the operation on the edit page and return to that exact page number/location AND for it to also remember how many "results per page" the user selected?  

Max number of rows in a table

Hey I'm doing a bit of research on which database to use for a new project. And one of the factors I have to take into consideration, is that we will have some tables with a high amount of records. I originally intended to use mysql (because it's free), but I have found that it has a cap of 4.2 billion rows per table. And it is a possibility that we will exceed that number in a few of our tables. So far, from looking around here, and on the web, I've only be able to find, that is no such cap on tables in mssql, and that table sizes is only limited by available storage. The thing is, 99% of the info I found regarding tablesize limits in mysql, also stated that it was only limited by the storage size (4gb, not all available). I had to look very thouroughly to find that last 1% where someone mentioned the 4.2 bil. upper limit. I hope someone here can confirm that, there is indeed no limit on the number of records in a single table in mssql, no hidden cap, however unlikely to be an issue. I find, that there's a ton reasons to pick mssql over mysql. But this factor will be a big selling point, in convincing the higher-ups that mssql is the better choice for my project.

Public URL Port Number appended for WebTaggingDialog.aspx page

Hi, I am not sure if this the right place to ask this question, We have a SarePoint site exposed to internet which has a web application at 8081 port. There server is behind a firewall which proxying 80 port network to 8081 port of SharePoint server. All Pages, Content and Images are working perfect but only the pages related to Taxonomy Store has port number appended to url which is not accepted at the firewal for example if the http://abc:8081 is my site the internet url is http://sharepoint.com all this is working but if is open page with WebTaggingControl or List with taxonomy fields the url http://sharepoint.com to going out of the browser as http://sharepoint.com:8081 so the firewall is blocking. Also I am not sure if the firewall can listen at two difference ports 80 and 8081 for a same url If this is not the right forum please redirect me to a forum where I could get help on this Thanks for taking time Deepak  

How to know the number of columns displayed on the last page for Multi column table

Hi, How will I determine how many columns to be displayed on the last page of the report if I am using a Multiple column table.  I am going to use the number of columns to multiply with the width of the body of the report. I am going to use a Function to get the product. 

Drop DownList (Limit the number of rows)

Hi All, I have a dropdown list. This is a bound to a column in Table which has around 200 entires.Now when a user clicks on the drop down list I want him to see not more than 10 rows. The rest he should navigate by using scroll bars.Please advise me on how to achieve this.Rg/-

Performance of a Stored procedure : Optimum number of rows to be handled in a batch


In a stored procedure is there anything called as optimum number of rows that need to be handled in a batch

as In, If there is a SP,

   that picks up data(via union operation) from various objects and puts them into a temp table after which the required data is moved to various tables,The above scenario is handled as a batch run where in 1 million rows are processed in a batch and the next 1 million rows in a next batch,so on and so forth.

   Is there any optimum number of rows that can be processed in the above case?

  When we increase rows processed per batch we have seen improvements in performance of the SP,but not sure when it will start deteriorating.




Count the number of users per web page


Hello everyone,

I have a website that has 10 aspx pages in it, and I'm trying to count how many users are on any one page at a time, and display that number on the web page.  I have set it up to use an Application object ("TotalViewers"), and initialize it to 0 in the Application_Start event handler of the global.asax file.  My reasoning (probably way off base) is to increment the count on each page load, and then decrement the count on each page unload.  The increment part works ok, but when I add the code in the page unload event handler to decrement, it seems that Unload happens before the Page is presented to the client, so the  value always stays the same (adds one in page load, subtracts one in page unload).

How else  can I track number of users on each page?  (simply, becuase I am still a beginner).  I have already done some google searching and haven't come up with anything useful. 

All my pages are being navigated via a TreeView control.

Thank you,





Report Model--is there a limit on the number of rows?

Is there a limit on the number of rows that a report model will support? Our report model has tables that have millions of rows of data. When we regenerate the model it starting to take hours to regenerate. Is that expected? Is there a limit on the number of rows that can be used with a model?
Kim B.

fixed widht height rows master page


Hi all:
I have a master page with three rows. What i want is that header should be fixed to top. Footer should always be fixed to bottom and center area should have a vertical scroll (top to bottom ) only if the contents size increases. and it should look same on all resolution. What should be style sheet for body and rows. I read somehwere that I need to use div. I used it for scrolling but it shrinks/expands with resolution.
    font-family: Ver
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend