Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Datatype "DateTime" not set for emtpy cells [9482]

$
0
0
Hello,

I am setting the datatype for a range of cells to "DateTime":
```
rangeTable.DataRange.Column(colNumber).SetDataType(XLCellValues.DateTime);
```
where rangeTable is an IXLTable and colNumber an int.

This sets the datatype for all cells that have a value, but it does not set it for empty cells. I need it for all cells.
By the way, setting the datatype to "XLCellValues.Number" works for all, empty and non-empty cells.

It would be great if someone could have a look at that.
Thank you!

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>