How to select all rows from all pages in a Gridview??

Last post 01-17-2008 12:42 AM by Mulukutla. 1 replies.

Sort Posts:

  • How to select all rows from all pages in a Gridview??

    01-17-2008, 12:28 AM
    • Member
      1 point Member
    • SimpleDev
    • Member since 10-16-2007, 6:01 AM
    • Posts 16

    i got this  ....

    Dim dr As GridViewRow

    For Each dr In Me.GridView1.Rows

    Dim check As CheckBox = CType(dr.FindControl("CheckBox1"), CheckBox)

    check.Checked = True

    Next

    But it works but just in the selected current page ..... Any help is wellcome ... Thanks in advance

  • Re: How to select all rows from all pages in a Gridview??

    01-17-2008, 12:42 AM
    Answer
    • Member
      271 point Member
    • Mulukutla
    • Member since 10-19-2007, 3:08 AM
    • Hyderabad
    • Posts 88

     You Need to maintain state of all checkbox's selection in some session with some unique value like ID, and need to check it in the list each time checking operation has done on checkbox. and u need to maintain the state in page index changed also.

    Regards,

    MulukutlaCool 

Page 1 of 1 (2 items)