Import DataView to GridWeb

Importing Data from DataView

Import data from a DataView object using the GridWorksheetCollection’s ImportDataView method in the GridWeb control. Pass the DataView object that you want to import data from to the ImportDataView method. It’s possible to specify column headers and data styles during import.

Output: Data imported from a DataView into a new worksheet

todo:image_alt_text

The widths of the columns are adjusted to show all the data they contain. When data is imported from a DataView, column widths are not adjusted automatically. Users need to adjust them manually. To adjust the column widths programmatically, refer to Resize Rows and Columns.