ASPxPivotGrid隐藏列

1、手动隐藏列:

 

2、自动隐藏列:

 1    /// PivotGrid绑定数据事件

 2     /// <summary>

 3     /// PivotGrid绑定数据事件

 4     /// </summary>

 5     /// <param name="sender"></param>

 6     /// <param name="e"></param>

 7   protected void pivotGridMain_DataBound(object sender, EventArgs e)

 8     {

 9         fieldBusiness.Visible = false;  //业务组

10         fieldCustomerName.Visible = false; //客户       

11         fieldCompanyName.Visible = false;  //产地名称

12         fieldCompanyCode.Visible = false;  //产地

13         fldCYQ.Visible = false;          //公司

14 }
View Code

 

你可能感兴趣的:(grid)