enak
07-19-2006, 09:06 AM
I have a grid view that contains a column of checkboxes. Some of the columns are enabled for sorting. The sorting works great if I reload the gridview on the postback. Code looks like this:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Me.sqlNewRequests.SelectCommand = ""
End If
Call loadGridView()
End Sub
But, if I try to gather the rows that have been checked the gridview has been reloaded and any checkbox that was checked is lost.
If I move the line "Call LoadGridView()" so that it won't reload on postback then it won't sort.
I know that this can be fixed but HOW?
Thanks,
enak
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Me.sqlNewRequests.SelectCommand = ""
End If
Call loadGridView()
End Sub
But, if I try to gather the rows that have been checked the gridview has been reloaded and any checkbox that was checked is lost.
If I move the line "Call LoadGridView()" so that it won't reload on postback then it won't sort.
I know that this can be fixed but HOW?
Thanks,
enak