您好,我找到这样的一个方法:
if (fpspread1.ActiveSheet.Models.Data is FarPoint.Win.Spread.Model.GroupDataModel)
{
FarPoint.Win.Spread.Model.GroupDataModel gdm = (FarPoint.Win.Spread.Model.GroupDataModel)fpspread1.ActiveSheet.Models.Data;
for (int i = 0; i < gdm.RowCount; i++)
{
// Determine whether it is group header row or not
if (gdm.IsGroup(i))
{
// Get group
var g = gdm.GetGroup(i);
g.Text = "分组行标题";//这里自行设置分组行标题,把原有的列号和冒号去掉。
}
}
} |