想要做成下面这样,但是要把钱三列去掉,只留下nodes中的信息。
修改代码如下
void _flex_AfterDataRefresh(object sender, System.ComponentModel.ListChangedEventArgs e)
{
_flex.Tree.Style = TreeStyleFlags.Simple;
_flex.Tree.Column =0;
int totalOn = _flex.Cols["Sale Amount"].SafeIndex;
_flex.Subtotal(AggregateEnum.None, 2, "CategoryName", "Sale Amount");
_flex.Cols["LastName"].Width = 0;
_flex.Cols["ShipCountry"].Width = 0;
_flex.Cols["CategoryName"].Width = 0;
_flex.AllowMerging = AllowMergingEnum.Nodes;
_flex.AutoSizeCol(_flex.Tree.Column);
_flex.Tree.Show(0);
}
结果前三列完全没有了
需要怎样修改? |