Hi all,
i m using gridview which has checkboxes(select row) and need to hold the values during pagination. I think it is not automatically supported in ASP.NET n so has to be done manually.Can anyone supply me the code or the logic.

thnx all.

Dear Sebastion3,
I hope this can solve your question :

Protected Sub GVTrx_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVTrx.RowDataBound
        If e.Row.RowType = DataControlRowType.DataRow Then
            Dim Chk As New CheckBox
            Chk = e.Row.FindControl("ChkSelect")
            Chk.Checked = True
        End If
End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.