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

New Post: Validation of cell using fixed List of values

$
0
0
After experiencing a similar issue and after much unsuccessful Googling, with the aid of the Microsoft Open XML SDK managed to get to the bottom of this one and the syntax required where you do not want to use ranges:

workSheet.Cell(rowIndex, 1).DataValidation.Value = "\"yes,no\"";

i.e. Comma separated list but requires additional quotes surrounding it to avoid being treated as a formula.

Hope this helps others.

Marie

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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