0
点赞
收藏
分享

微信扫一扫

[K/3Cloud] 代码中设置某个字段必录

悄然丝语 2023-03-15 阅读 18


Control ctl = this.GetControl(fieldKey);

FieldEditor editCtl = ctl as FieldEditor;

if (editCtl != null)

{

editCtl.MustInput = mustInput;

}

使用视图类获得指定字段对应的控件,并设置控件的MustInput属性。


举报

相关推荐

0 条评论