我也是测试后给您的代码。 如果不行的话,您发一个可以重现的Demo过来
- private void FpSpread1_Grouped(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.Model.GroupDataModel gdm;
- gdm = (FarPoint.Win.Spread.Model.GroupDataModel)fpSpread1.ActiveSheet.Models.Data;
- for (var i = 0; i < gdm.RowCount; i++)
- {
- if (gdm.IsGroup(i))
- {
- fpSpread1.ActiveSheet.Rows[i].Height = 0;
- fpSpread1.ActiveSheet.Rows[i].Visible = false;
- }
- }
- }
复制代码 |