Datagrid paging
-
Hi! I have a datagrid with paging that works fine. The problem is that I'm using filters (DataViews) and when the data is filtered, the page numbering is not refresh. Is there anyway to work this around? Thanks.
-
Hi! I have a datagrid with paging that works fine. The problem is that I'm using filters (DataViews) and when the data is filtered, the page numbering is not refresh. Is there anyway to work this around? Thanks.
This is my code for Refresh data: '---------------------------- Dim myView as Dataview Dim myDS as Dataset Sub Binddata(ByVal SortExpression As String) myView = New DataView(myDs.Tables(0)) myView.Sort = SortExpression Me.myDataGrid.DataSource = myView Me.myDataGrid.DataBind() End Sub Public Sub myDataGrid_PageChanged(ByVal sender As Object, ByVal e As DataGridPageChangedEventArgs) MyDataGrid.CurrentPageIndex = e.NewPageIndex 'choice field to filter Dim field_filter as string="CustomerID" Binddata(field_filter) End Sub '------------ In HTML page '--------- Hope everything in the garden is lovely.;P