Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Gridview <asp:GridView Width="100%" ID="gvwData" CssClass="datatable" PageSize="5" runat="server" PagerSettings-Visible="true" > </asp:GridView> Code behind Imports System.Linq.Dynamic Sub bindGrid() 'bind grid data With Me.gvwData .Width = WebControls.Unit.Percentage(100) .EnableViewState = False .AutoGenerateColumns = False .DataSource = Me.GetFilteredData() .DataBind() End With End Sub Private Function GetFilteredData() As DataTable Dim dtFilterData As New DataTable 'dynamic query against datatable 'select everything from currentdataset Dim query = From dv In Me.CurrentDataTable Select dv If Me.PageSize = -1 Then dtFilterData = query.CopyToDataTable Else 'Skip the first (Me.CurrentPageIndex * Me.PageSize) records and take the next (pagezise) ' dtFilterData = query.Take(Me.PageSize).CopyToDataTable dtFilterData = query.Skip(Me.CurrentPageIndex * Me.PageSize).Take(Me.PageSize).CopyToDataTable End If Return dtFilterData End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.