Adf.Web.Binding.DataGridBinder.SetPaging C# (CSharp) Метод

SetPaging() приватный статический Метод

Sets the paging related properties of the specified System.Web.UI.WebControls.DataGrid. The specified number of records determines the visibility of the pager.
The 'DataKeyField' property of the specified System.Web.UI.WebControls.DataGrid is set to 'ID'.
private static SetPaging ( DataGrid grid, int rows ) : void
grid System.Web.UI.WebControls.DataGrid The , the paging /// related properties of which are to set.
rows int The number of records.
Результат void
        private static void SetPaging(DataGrid grid, int rows)
        {
            grid.PagerStyle.Visible = grid.PageSize < rows;
            grid.PagerStyle.Mode = defaultPagingMode;
            grid.CurrentPageIndex = 0;
        }
DataGridBinder