Control ctl = this.GetControl(fieldKey);
FieldEditor editCtl = ctl as FieldEditor;
if (editCtl != null)
{
editCtl.MustInput = mustInput;
}
使用视图类获得指定字段对应的控件,并设置控件的MustInput属性。
微信扫一扫
Control ctl = this.GetControl(fieldKey);
FieldEditor editCtl = ctl as FieldEditor;
if (editCtl != null)
{
editCtl.MustInput = mustInput;
}
使用视图类获得指定字段对应的控件,并设置控件的MustInput属性。
相关推荐