Home Forums WinForms controls Xceed Grid for WinForms Remove None Button from Calendar Control Reply To: Remove None Button from Calendar Control

User (Old forums)
Post count: 23064

It is basically the same thing , since the dropdown control of the DatePicker is a WinCalendar underneath.  The DateEditor is in fact a WinDatePicker, so if you cast the DateEditor, you can access the DropDownControl of the WinDatePicker, thus the WinCalendar.


 WinDatePicker datePicker = ( WinDatePicker )gridControl1.Columns[ “StartDate” ].CellEditorManager.TemplateControl;

datePicker.DropDownControl.NoneButton.Visible = false;

datePicker.DropDownControl.TodayButton.Left = 34;

Imported from legacy forums. Posted by André (had 333 views)