New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
public class GridExportState

Inheritance: objectGridExportState

Constructors

Initializes a snapshot of the grid's current row, scroll positions, paging, and grouped-column visibility.

C#
public GridExportState(GridViewRowInfo currentRow, int vScrollBarValue, int hScrollBarValue, bool pagingState, int currentPageIndex, bool showGroupedColumns)
Parameters:currentRowGridViewRowInfo

The current row to restore after export.

vScrollBarValueint

The vertical scroll position to restore.

hScrollBarValueint

The horizontal scroll position to restore.

pagingStatebool

true if paging is enabled in the grid.

currentPageIndexint

The page index to restore when paging is enabled.

showGroupedColumnsbool

true if grouped columns are shown in the grid.

Properties

Gets the page index saved for restoration when paging is enabled.

C#
public int CurrentPageIndex { get; }

Gets the current row saved for restoration after export.

C#
public GridViewRowInfo CurrentRow { get; }

Gets the horizontal scrollbar value saved before export.

C#
public int HScrollBarValue { get; }

Gets a value indicating whether paging was enabled when the grid state was saved.

C#
public bool PagingState { get; }

Gets the cells saved as selected so the exporter can restore their selection.

C#
public ICollection<GridViewCellInfo> SelectedCells { get; }

Gets the rows saved as selected so the exporter can restore their selection.

C#
public ICollection<GridViewRowInfo> SelectedRows { get; }

Gets a value indicating whether grouped columns were shown when the grid state was saved.

C#
public bool ShowGroupedColumns { get; }

Gets the vertical scrollbar value saved before export.

C#
public int VScrollBarValue { get; }