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
In Excel I can do something like this:
Image

In ClosedXML I did not find a way. I tried:
workSheet.Cell(rowIndex, 1).DataValidation.InCellDropdown= true;
workSheet.Cell(rowIndex, 1).DataValidation.AllowedValues = XLAllowedValues.List;
workSheet.Cell(rowIndex, 1).DataValidation.IgnoreBlanks = true;
workSheet.Cell(rowIndex, 1).DataValidation.Value = "yes;no";
what am I missing?

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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