现在的位置: 首页 > 综合 > 正文

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

2013年07月07日 ⁄ 综合 ⁄ 共 155字 ⁄ 字号 评论关闭
Control ctl = this.GetControl(fieldKey);

        FieldEditor editCtl = ctl as FieldEditor;

         if (editCtl != null)

         {

                editCtl.MustInput = mustInput;

         }

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

抱歉!评论已关闭.