CalendarComboBoxCellType CreateCommonComboBoxCell()
{
CalendarComboBoxCellType comboBoxCell = new CalendarComboBoxCellType();
// The item which listed in drop down window.
comboBoxCell.Items.Add("Item2");
comboBoxCell.Items.Add("Item1");
comboBoxCell.Items.Add("Item3");
comboBoxCell.Items.Add("Item4");
comboBoxCell.Items.Add("Long Item to Make Ellipsis Show");
// Sort items.
comboBoxCell.Sorted = true;
// Drop down window's width, in default, the value is equals to cell's width.
comboBoxCell.DropDownWidth = 100;
// In non edit status, if text's length bigger than cell's width, EllipsisString will be shown.
comboBoxCell.Ellipsis = CalendarGridEllipsisMode.EllipsisEnd;
return comboBoxCell;
}
Private Function CreateCommonComboBoxCell() As CalendarComboBoxCellType
Dim comboBoxCell As New CalendarComboBoxCellType()
' The item which listed in drop down window.
comboBoxCell.Items.Add("Item2")
comboBoxCell.Items.Add("Item1")
comboBoxCell.Items.Add("Item3")
comboBoxCell.Items.Add("Item4")
comboBoxCell.Items.Add("Long Item to Make Ellipsis Show")
' Sort items.
comboBoxCell.Sorted = True
' Drop down window's width, in default, the value is equals to cell's width.
comboBoxCell.DropDownWidth = 100
' In non edit status, if text's length bigger than cell's width, EllipsisString will be shown.
comboBoxCell.Ellipsis = CalendarGridEllipsisMode.EllipsisEnd
Return comboBoxCell
End Function