Hi Team,
I am displaying combo box on excel. But I want to display combo box with selected default value when it load. e.g When combo box load first time on excel that time I want to display default selected value from list i.e. “Aspose.Grid”
Platform : .Net (C#)
------------------------------Dummy Code---------------------------------------
string[] items = new string[3];
items[0] = “Aspose”;
items[1] = “Aspose.Grid”;
items[2] = “Aspose.Grid.Desktop”;
CellArea a = new CellArea();
a.StartRow = 2;
a.EndRow = 14;
a.StartColumn = 4;
a.EndColumn = 4;
var flatList = string.Join(",", items.ToArray());
ValidationCollection data = this.worksheet.Validations;
Validation v = data[data.Add(a)];
v.Type = Aspose.Cells.ValidationType.List;
v.Operator = OperatorType.Between;
v.InCellDropDown = true;
v.Formula1 = flatList;
Original Img.png (1.4 KB)
Wanted Output.png (1.7 KB)