GridWorksheetCollection.ImportDataView

ImportDataView(DataView, TableItemStyle, TableItemStyle)

Imports from a DataView. Creates a sheet with the DataView’s table name automatically.

public void ImportDataView(DataView dataView, TableItemStyle colHeaderStyle, 
    TableItemStyle dataStyle)
ParameterTypeDescription
dataViewDataViewThe DataView object.
colHeaderStyleTableItemStyleSpecifies the style of the dataview header bar.
dataStyleTableItemStyleSpecifies the style of the data area.

See Also


ImportDataView(DataView, TableItemStyle, TableItemStyle, string, int, int)

Imports from a DataView to the specified sheet and position.

public void ImportDataView(DataView dataView, TableItemStyle colHeaderStyle, 
    TableItemStyle dataStyle, string sheetName, int row, int column)
ParameterTypeDescription
dataViewDataViewThe DataView object.
colHeaderStyleTableItemStyleSpecifies the style of the dataview header bar.
dataStyleTableItemStyleSpecifies the style of the data area.
sheetNameStringSpecifies the sheet name. If the sheet doesn’t exist, it will be created for you.
rowInt32Specifies the import position.
columnInt32Specifies the import postion.

See Also