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

  • SEARCH
  • Home
  • 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 6904745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:05:56+00:00 2026-05-27T08:05:56+00:00

I would like to implement custom sorting on a custom databound GridView. OnSorting has

  • 0

I would like to implement custom sorting on a custom databound GridView. OnSorting has been implemented and I already know that I need to modify that to make the sort work. Unfortuantely for some reason when I run the page it doesn’t create the hyperlinks on the headings to be clicked to trigger the event:

<asp:GridView ID="dgEnrollmentTracker" runat="server" AllowPaging="True" OnSorting="dgEnrollmentTracker_Sorting"
    AllowSorting="True" AutoGenerateColumns="False" EnableModelValidation="True"
    Font-Size="8.5pt" Width="1930px" Font-Names="verdana,tahoma,sans-serif">
    <Columns>
        <asp:HyperLinkField DataNavigateUrlFields="Name URL" DataTextField="Name" 
            HeaderText="Name" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="75px" HorizontalAlign="Left" />
        </asp:HyperLinkField>

        <asp:BoundField DataField="Site ID" HeaderText="Site ID" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="75px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="S Date" HeaderText="S Date" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="125px" HorizontalAlign="Left" />
        </asp:BoundField>


        <asp:BoundField DataField="P Initials" HeaderText="P Initials" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="125px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="PID" HeaderText="PID" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="75px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="Type" HeaderText="Type" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="125px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="Eligibility" HeaderText="Eligibility" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="75px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="Ent Date Mailed" HeaderText="Ent Date Mailed" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="125px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="PReached" HeaderText="PReached" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="125px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="Ento Date Mailed" HeaderText="Ento Date Mailed" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="125px" HorizontalAlign="Left" />
        </asp:BoundField>


        <asp:BoundField DataField="EDate" HeaderText="EDate" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="125px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="DoS" HeaderText="DoS" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="125px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="BSC" HeaderText="BCS" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="75px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="SC" HeaderText="SC" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="75px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="Modified" HeaderText="Modified" >
        <HeaderStyle HorizontalAlign="Left" Font-Bold="False" />
        <ItemStyle Width="165px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="Modified By" HeaderText="Modified By" >
        <HeaderStyle HorizontalAlign="Left" />
        <ItemStyle Width="225px" HorizontalAlign="Left" />
        </asp:BoundField>

        <asp:BoundField DataField="Created" HeaderText="Created" >
        <HeaderStyle HorizontalAlign="Left" />
        <ItemStyle Width="165px" HorizontalAlign="Left" />
        </asp:BoundField>

    </Columns>
    <PagerStyle BorderStyle="None" HorizontalAlign="Center" 
        VerticalAlign="Middle" />
</asp:GridView>
  • 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-05-27T08:05:57+00:00Added an answer on May 27, 2026 at 8:05 am

    Check This out sortexpression property

      `<asp:BoundField DataField="PReached" HeaderText="PReached"
            SortExpression="PReached" ReadOnly="True" />`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to implement a custom database initialization strategy so that I can
I'm building an ASP.net custom control that implements IScriptControl . I would like other
I would like to implement a producer/consumer scenario that obeys interfaces that are roughly:
I would like to implement a post build event that performs the following actions
We would like to implement a web form that automatically saves content at regular
I have a news table and I would like to implement custom ordering. I
I would like to implement an open file dialog or file browser that additionally
I would like to create a set of custom controls that are basically image
I'd like to implement a custom TabLayoutPanel which would automatically setup the tab itself
Hi i would like to create a custom button. I have implement my custom_but.xml

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.