Solved

GridView

Posted on 2009-05-14
7
319 Views
Last Modified: 2013-12-17
Hello there,

I have a gridview on my page that display the search results.. How can I have the grid to display all the time10 records? then when I search I can see only the ones that matches the search?
0
Comment
Question by:Romacali
  • 3
  • 3
7 Comments
 
LVL 6

Expert Comment

by:dorothy2
ID: 24387217
Is your question about how to implement paging in a gridview?
0
 
LVL 7

Accepted Solution

by:
urir10 earned 500 total points
ID: 24387343
You will need to pass it a datasource with only the records that match the search
0
 

Author Comment

by:Romacali
ID: 24387458
how can I add a data source there?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 7

Expert Comment

by:urir10
ID: 24387591
How are you populating the data in the gridview?
0
 

Author Comment

by:Romacali
ID: 24387600
I have a procedure search that is called when I click search and it display on the gridview
0
 
LVL 7

Expert Comment

by:urir10
ID: 24387611
i dont really understand what you trying to do then. Are you asking how to enable paging ?
0
 

Author Comment

by:Romacali
ID: 24387771
I want to have all the records users there.. then when I want to search then it should show me the record or 1 row..
I want the grid to be always there with all the records it just shows up if I click search

the problem so far when I run my procedure I see 10 records and on the grid just 1
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now