Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

gridview

Posted on 2006-06-13
1
Medium Priority
?
334 Views
Last Modified: 2010-04-16
Hello experts,

I am trying to use the gridview control, I'm not completely versed on how it works or behaves,

But I have the following;
<asp:GridView ID="searchresults" Runat="server" DataSourceID="ObjectDataSource3" AutoGenerateColumns="False"
        AllowPaging="True" AllowSorting="True" DataKeyNames="VEHICLEID">
        <Columns>
          <asp:CommandField ShowEditButton="False" />
          <asp:BoundField HeaderText="Make" DataField="make" SortExpression="make" ReadOnly="true" />
          <asp:BoundField HeaderText="Model" DataField="model" SortExpression="model" />
          <asp:BoundField HeaderText="Mileage" DataField="MILEAGE" SortExpression="MILEAGE" />
              <asp:BoundField HeaderText="Engine Size" DataField="ENGINESIZE" SortExpression="ENGINESIZE" />
              <asp:BoundField HeaderText="Fuel" DataField="TRANSMISSION" SortExpression="TRANSMISSION" />
        </Columns>
      </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSource3" Runat="server" TypeName="AuctionsDB"
        SelectMethod="GetVehiclesBySearchCriteria" OldValuesParameterFormatString="{0}">
      </asp:ObjectDataSource>

it displays the data, but it does not do any sorting or paging. Also users need to be able to click to go to a details page, how do I acheive this.

0
Comment
Question by:claracruz
1 Comment
 
LVL 10

Accepted Solution

by:
SystemExpert earned 2000 total points
ID: 16893368
Hi ,
This is link you will find the code for sorting and  paging
plz find it

http://www.developerfusion.co.uk/show/4686/

http://www.dotnetjohn.com/articles.aspx?articleid=108

Thanks
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month11 days, 10 hours left to enroll

916 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