Excel & EPPlus .NET library: Advanced DropDown list validation
问题 In Epplus, when we create a DropDown list for some cells in excel file, then user put a value which is not part of the list, the cell show a message says: value must match one of the listed items. Instead of this message, Is it possible to prevent the user to put a value which is not part of the drop down list? Thanks in advance, 回答1: I did it with the following code: //ExcelWorksheet ws var validation = ws.DataValidations.AddListValidation(cell.Address); //Error handling validation