datagrid - selecting checkboxes in different pages .NET

Posted on 2010-01-07
Last Modified: 2013-11-08

I have a web application. I retrieve data from the database and display them in a datagrid.
lets say I have 100 records but using paging feature, I only display 10 records per page.

Each record has a checkbox. I select 2 records (by checking their checkboxes) from the first page and 2 records (by checking their checkboxes)from the page 6.

Is it possible to have a button such as 'View Selected' and when I click on the button, I only see the selected records from page 1 and page 6?

(either frame work 1.X or framework 3.X)

Thanks in advance
Question by:shmz
    LVL 11

    Expert Comment


      Checkboxes will be read from the current page only.

    Author Comment

    thanks Rajvja,
    Yes I know, but is there any work around?
    LVL 11

    Accepted Solution

    I think,

       CheckBox click event, store in a page level variable or other kind. Save the chekboxids or any required data and work on this finally.


    In the checkbox click event, store the details in a datatable and work on that.

    I know this is time consuming but no option

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now