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

Control ctl = this.GetControl(fieldKey);

        FieldEditor editCtl = ctl as FieldEditor;

         if (editCtl != null)

         {

                editCtl.MustInput = mustInput;

         }
使用视图类获得指定字段对应的控件,并设置控件的MustInput属性。
posted @ 2013-09-12 16:07  范永强  阅读(147)  评论(0编辑  收藏  举报