Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

gridview

Posted on 2006-06-13
1
Medium Priority
?
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

722 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