这个和授权没有关系。
您有使用或者设置GroupInfo吗,检查一下相关代码
- fpSpread1.AllowColumnMove = true;
- fpSpread1.ActiveSheet.GroupBarInfo.Visible = true;
- fpSpread1.ActiveSheet.GroupBarInfo.BackColor = Color.Aquamarine;
- fpSpread1.ActiveSheet.GroupBarInfo.Height = 75;
- fpSpread1.ActiveSheet.GroupMaximumLevel = 3;
- fpSpread1.ActiveSheet.GroupBarInfo.GroupVerticalIndent = 20;
- fpSpread1.ActiveSheet.AllowGroup = true;
- FarPoint.Win.Spread.GroupInfo gi = new FarPoint.Win.Spread.GroupInfo();
- gi.BackColor = Color.Yellow;
- FarPoint.Win.Spread.GroupInfo gi2 = new FarPoint.Win.Spread.GroupInfo();
- gi2.BackColor = Color.Green;
- FarPoint.Win.Spread.GroupInfoCollection gic = new FarPoint.Win.Spread.GroupInfoCollection();
- gic.AddRange(new FarPoint.Win.Spread.GroupInfo[] { gi, gi2 });
- fpSpread1.ActiveSheet.GroupInfos.Add(gic.Item[0]);
复制代码
|