【问题标题】:Get Telerik Grid columns Header Text获取 Telerik Grid 列标题文本
【发布时间】:2010-10-08 10:43:53
【问题描述】:

我需要重命名我的网格标题文本。我的网格使用自动生成的列生成。我在 Datatable 中获取数据并将其分配给网格。分配给网格后,我使用了一个在 databind() 之后调用的函数,它格式化网格单元格而不是 HeaderText。

谁能帮我解决这个问题?

 foreach (GridColumn column in grdTestCertificate.Columns)
        {
            string[] strColumn = column.HeaderText.Split('|');
            column.HeaderText = strColumn[1];
        }

它返回 0 列计数。

【问题讨论】:

    标签: gridview web telerik telerik-grid


    【解决方案1】:

    啊,我找到了解决方案,

     foreach (GridColumn column in grdTestCertificate.MasterTableView.RenderColumns)
            {
    
                 column.HeaderText = "";
            }
         grdTestCertificate.rebind();
    

    如果你有解决方案,请指出我的答案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多