GridExportState
Holds the grid view state that exporters save before changing the grid and restore after export.
Definition
Namespace:Telerik.WinControls.Export
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridExportState
Inheritance: objectGridExportState
Constructors
Initializes a snapshot of the grid's current row, scroll positions, paging, and grouped-column visibility.
public GridExportState(GridViewRowInfo currentRow, int vScrollBarValue, int hScrollBarValue, bool pagingState, int currentPageIndex, bool showGroupedColumns)
The current row to restore after export.
vScrollBarValueintThe vertical scroll position to restore.
hScrollBarValueintThe horizontal scroll position to restore.
pagingStatebooltrue if paging is enabled in the grid.
currentPageIndexintThe page index to restore when paging is enabled.
showGroupedColumnsbooltrue if grouped columns are shown in the grid.
Properties
Gets the page index saved for restoration when paging is enabled.
public int CurrentPageIndex { get; }
Gets the current row saved for restoration after export.
public GridViewRowInfo CurrentRow { get; }
Gets the horizontal scrollbar value saved before export.
public int HScrollBarValue { get; }
Gets a value indicating whether paging was enabled when the grid state was saved.
public bool PagingState { get; }
SelectedCells
ICollection<GridViewCellInfo>
Gets the cells saved as selected so the exporter can restore their selection.
public ICollection<GridViewCellInfo> SelectedCells { get; }
SelectedRows
ICollection<GridViewRowInfo>
Gets the rows saved as selected so the exporter can restore their selection.
public ICollection<GridViewRowInfo> SelectedRows { get; }
Gets a value indicating whether grouped columns were shown when the grid state was saved.
public bool ShowGroupedColumns { get; }
Gets the vertical scrollbar value saved before export.
public int VScrollBarValue { get; }