Consider this code:
```
var dropDown = sheet.DataValidations.AddListValidation(cells[2, colIndex, maxCol, colIndex].Address);
foreach (var bb in brokerBranchs)
{
dropDown.Formula.Values.Add(bb.Title);
}
```
When dropDown count is 29 all thing is ok but when greater than 29 i get error

Comments: This is because excel stores the values in a comma separated string. This string can unfortunately not be longer than 255 characters. So when you add values like this: Formula.Values.Add("A"); Formula.Values.Add("B"); It is stored like "A,B" in the excel xml. I have on my to-do-list to add a control for this and throw an exception if the length of the string exceeds 255 chars.
```
var dropDown = sheet.DataValidations.AddListValidation(cells[2, colIndex, maxCol, colIndex].Address);
foreach (var bb in brokerBranchs)
{
dropDown.Formula.Values.Add(bb.Title);
}
```
When dropDown count is 29 all thing is ok but when greater than 29 i get error

Comments: This is because excel stores the values in a comma separated string. This string can unfortunately not be longer than 255 characters. So when you add values like this: Formula.Values.Add("A"); Formula.Values.Add("B"); It is stored like "A,B" in the excel xml. I have on my to-do-list to add a control for this and throw an exception if the length of the string exceeds 255 chars.