sheet-to-data | simple wrapper around the Google Sheet | REST library
kandi X-RAY | sheet-to-data Summary
kandi X-RAY | sheet-to-data Summary
A simple wrapper around the Google Sheets API for converting the contents of a Google Sheet into a tabular or key-value data structure.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert a sheet to a spreadsheet
- Mix two arrays .
- Transform an array of values into an object .
sheet-to-data Key Features
sheet-to-data Examples and Code Snippets
Community Discussions
Trending Discussions on sheet-to-data
QUESTION
I am using the following code to read Excel data from the clipboard into a C# data table. The code is relatively unchanged as found from this answer to this question. I then add the data table as a data source to a DataGridView control for manipulation.
However, in my Excel data, I have blank/empty cells that I need to preserve, which this code does not do (blank cells are skipped over, effectively compressing each row leaving no empty space; the empty cells are missing from the Excel XML). How could I preserve empty cells when transferring to the data table?
Method:
...ANSWER
Answered 2017-Jul-07 at 19:59The cell's xml will have an Index attribute if the previous cell was missing (had an empty value). You can update your code to check if the column index has changed before copying it to your data table row.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sheet-to-data
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page