Infragistics Winforms Datagrid调整列的层次结构

时间:2013-10-22 07:40:34

标签: c# winforms datagrid infragistics

我在11.2版本中使用的是Infragistic的Winforms Datagrid。

我通过它的Datasource属性将以下集合放在网格中:

人-1 ----- 1 .. * - 订单(所以'人'可以有1到多个'订单')。

Person has the properties:
- Name
- Date of birth

Order has the properties:
- Order number
- Order date

现在,此人的姓名大于订单号。我想在Band#0中调整person的名称列,并在Band#1中保留订单编号列的大小。

可以这样做吗?

1 个答案:

答案 0 :(得分:2)

检查您的财产:

grid.DisplayLayout.Override.AllowColSizing 

应将其设置为默认值(不确定您的版本的默认值)或手动将其设置为

AllowColSizing.Free
相关问题