This function is used to export any grid controls like Dynamic grid or table view.
Syntax:
ExportGrid(Control Name,File Type,File Name, FileUploadControl)
Control Name is the name of Dynamic Grid/Table view control.
The File Type refers to the file extension that needs to be downloaded. File type can be “csv”,”xls”,”xlsx”, or “oxls”.
The FileName is the name of the file that will be downloaded.
FileUploadControl refers to the FUP control name on the form, used when the file needs to be appended to that FUP instead of being downloaded.
File type, name, and File upload name are optional parameters.
Example:
ExportGrid(DynamicGrid1,”csv”,”Data1″)