/// <summary> /// 创建Group /// </summary> internal static void CreateGroups(this IBoundGrid grid) { IList <GridGroupInfo> groupInfos = ADInfoBll.Instance.GetGridGroupInfos(grid.GridName); foreach (GridGroupInfo info in groupInfos) { Group group = grid.AddGroup(info.GroupBy, info.TitleFormat); group.Collapsed = info.Collapsed; } }