【问题标题】:Infragistics Winforms Datagrid resizing columns hierarchicalInfragistics Winforms Datagrid 调整列的大小
【发布时间】:2013-10-30 23:16:56
【问题描述】:

我正在使用 11.2 版的 Infragistic 的 Winforms Datagrid。

我已通过其 Datasource 属性将以下集合放入网格中:

Person -1-----1..*- 订单(所以一个“人”可以有 1 到多个“订单”)。

Person has the properties:
- Name
- Date of birth

Order has the properties:
- Order number
- Order date

现在这个人的名字比订单号长。我想将 Band # 0 中 person 的 name 列放大,而 Band # 1 中 order 的 order number 列变小。

这可以做到吗?如何做到?

【问题讨论】:

    标签: c# winforms datagrid infragistics


    【解决方案1】:

    检查您的财产:

    grid.DisplayLayout.Override.AllowColSizing 
    

    它应该设置为默认值(不确定您的版本的默认值是什么)或手动设置为

    AllowColSizing.Free
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-05
      • 2011-11-20
      • 1970-01-01
      • 2011-05-23
      • 2011-08-20
      • 2011-11-18
      • 2011-04-21
      • 2016-01-22
      相关资源
      最近更新 更多