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

New Comment on "Data Validation"

$
0
0
How can you add a list (dropdown) using a comma-separated string? I'd rather not have to use a range of cells from an existing worksheet. I tried: cell.Value = "Awesome"; var list = new List<string> {"Could be better", "Average", "Awesome"}; cell.DataValidation.List(string.Join(",", list.ToArray()), true); Excel tries to repair the document and I get the following exception message: "Removed Feature: Data validation from /xl/worksheets/sheet.xml part" Thanks, Cameron

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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