Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8065045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:32:56+00:00 2026-06-05T11:32:56+00:00

I have a sharepoint link list.I am programattically displaying items of the link list

  • 0

I have a sharepoint link list.I am programattically displaying items of the link list in the SPGridView.

I am using following code to read the list

SPList spList = myWeb.Lists["MyListNameHere"];

and assign the SpList as the datasource of SPGridView which display items as is.

But i want to display items in SPGridView in the same order as they are set through List Tool > Items > Change Item Order

Order of SPGridView items should always reflect the current order set in the link list items.

How can this be achieved ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:32:57+00:00Added an answer on June 5, 2026 at 11:32 am

    The order is stored in a hidden column named Order.
    Use SPDataSource control as your data source, set the listID to your list and set the select query to something like:

       <OrderBy>
          <FieldRef Name="Order" />
       </OrderBy>
    

    That should do it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sharepoint list and user will click 'start now' link in that
i have been asked to develop a feature of cloning list items in sharepoint.
On my SharePoint 2010 site I have a list of items (Document Library). This
I have a requirement in sharepoint where I want to Create the top link
I have multiple SharePoint lists and want to display data from them on to
I have a SharePoint list with Content Approval enabled. The business requirement is that
I have acustom sharepoint page. on my machine I can debug the code normaly
i have a sharepoint custom list and we have 2 columns in there URL
I currently have a normal SharePoint list with about 15 columns or so. I
I am using SoapClient to pull data out of a sharepoint list. If its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.