/// <summary> /// 子表格 /// </summary> /// <typeparam name="TProperty">属性类型</typeparam> /// <param name="expression">集合属性,范例:t => t.Users</param> /// <param name="funcCreateColumns">创建列集合方法</param> public ISubDataGrid SubGrid <TProperty>(Expression <Func <TEntity, IEnumerable <TProperty> > > expression, Func <TProperty, ISubGridColumn[]> funcCreateColumns) { return(EasyUiFactory <TEntity> .CreateSubGrid(expression, funcCreateColumns).RowNumber().FitColumns().Strip().CheckOnSelect(false).SelectOnCheck(false).SingleSelect()); }
/// <summary> /// 子表格 /// </summary> /// <param name="property">集合属性,范例:如果对象包含A元素集合List1,A元素包含集合List2,展示List2使用"List2",不要写成"List1.List2"</param> public ISubDataGrid SubGrid(string property) { return(EasyUiFactory.CreateSubGrid().RowNumber().FitColumns().Strip().Property(property).CheckOnSelect(false).SelectOnCheck(false).SingleSelect()); }