问题描述:DevExpress XtraScheduler中创建新的日程时,里面的ResourceEdit每次都显示一个Any选项,可否将其去掉?
问题解答:可以去掉,通过 edtResource的remove方法。
关键代码:
public class MyAppointmentForm : AppointmentForm
{
public MyAppointmentForm(SchedulerControl sc, Appointment apt, bool openRecurrenceForm)
: base(sc, apt, openRecurrenceForm)
{
this.edtResource.SelectedIndex = -1;
this.edtResource.Properties.Items.RemoveAt(0);
}
}
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/164.html