LoadCsvFile

<< Click to Display Table of Contents >>

Manual > Control Reference > Basics > Grid control > Methods >

LoadCsvFile


 

Display data read from a CSV file in a grid.

 


syntax

LoadCsvFile(

         fileName

         [,bAdjustCols = TRUE]

         [,bAdjustRows = TRUE]

         [,headerCols = 0]

         [,headerRows = 0]

         )

 


Parameters

 

fileName


Type:

character


File name.

 

bAdjustCols


Type:

Boolean


TRUE - The number of grid columns will be automatically adjusted depending on the contents of the CSV file.

FALSE - The number of columns will remain fixed as it is. If the number of columns in the CSV file is greater than the number of columns in the grid, this will be ignored.

 

bAdjustRows


Type:

Boolean


TRUE - The number of grid rows will be automatically adjusted depending on the contents of the CSV file.

FALSE - The number of rows will remain fixed as is. If the number of rows in the CSV file is greater than the number of rows in the grid, this will be ignored.

 

headerCols


Type:

Number


If the CSV you are loading contains headers, specify the number of columns in the header direction. After loading, the number of columns in the grid header will be automatically adjusted.

 

headerRows


Type:

Number


If the CSV you are loading contains headers, specify the number of header rows in the row direction. After loading, the number of header rows in the grid will be automatically adjusted.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 


hmtoggle_plus1Explanation

 


reference