Пример #1
0
 /// <summary>
 ///   定义编辑规则
 /// </summary>
 /// <param name="col"></param>
 /// <param name="editRules"></param>
 /// <returns></returns>
 public static GridColumn EditRules(this GridColumn col, EditRules editRules)
 {
     col.EditRule = editRules;
     return(col);
 }
Пример #2
0
 /// <summary>
 ///     定义字段是否可编辑
 /// </summary>
 public static GridColumn Editable(this GridColumn col, ColumnEdits edittype, string editoptions, EditRules rules = null)
 {
     col.Editable    = true;
     col.EditType    = edittype.ToString().ToLower();
     col.Editoptions = "&{" + editoptions + "}&";
     col.EditRule    = rules;
     return(col);
 }