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 238311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:29:43+00:00 2026-05-11T20:29:43+00:00

I have a page that uses GridView to display some data taken from a

  • 0

I have a page that uses GridView to display some data taken from a stored procedure

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString1 %>"
            SelectCommand="p_get_all_students" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>

One of the columns returned is studyYear with the possible values: 1,2,3

I would like to add a set of 3 checkboxes to allow filtering of the displayed results by the studyYear

How could I do this?


Ideally I would like to keep the stored procedure as p_get_all_students and only filter the displayed information – so there would be only one initial call to the database.

EDIT
The number of rows returned by the stored procedure is from 20 to 200

  • 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-11T20:29:44+00:00Added an answer on May 11, 2026 at 8:29 pm

    I’d personally change the way the app was architected. If you want to keep the code the same though, you could hook into the RowDataBound event.

    Update- here’s an example which should help you.

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

Sidebar

Related Questions

I have an HTML page that uses AJAX to retrieve messages from a server.
I have an ASP.NET page that uses a repeater nested within another repeater to
I have a page that uses https and when i do a redirect from
I have a page that uses multiple dialogs for different things. Some dialogs may
I have a page that uses jQuery's $.post() method to get some html and
I have a page that uses a TreeView control from ComponentArt. If I add
I have a ASP.NET GridView that uses template columns and user controls to allow
I have a GridView that is customized by each page that uses it. The
I have a page that uses JQuery UI Tabs and some other bits and
I have a login page that uses ASP.NET membership. Once I've validated the user

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.