Code: Select all
gvResults.DataSource = persons
gvResults.DataBind()
Session("PERSONS") = persons
Code: Select all
Dim dt As DataTable = Session("PERSONS")
Dim dv As DataView = New DataView(dt)
dv.Sort = sortEx
'Save back to Session so paging functionality remains
Session("PERSONS") = dv.ToTable()
gvResults.DataSource = Session("PERSONS")
gvResults.DataBind()