0

我在使用 Infragistics UltraWinGrid 渲染的表中有很多细列。

我可以以九十度显示列标题,以便它们可以很长吗?

4

1 回答 1

0

诺金斯,

是的,您可以以这种方式显示您的标题。您可以在下面找到旋转标题的三种可能性,您应该选择最适合您需求的一种。我正在处理 UltraGrid 控件的 InitializeLayout 事件,如下所示:

`    Private Sub UltraGrid1_InitializeLayout(sender As System.Object, e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
    'Create your own Vertical Orientation (1)
    e.Layout.Override.ColumnHeaderTextOrientation = New Infragistics.Win.TextOrientationInfo(0, Infragistics.Win.TextFlowDirection.Vertical)
    'Create your own Horizontal Orientation, rotating the headers (2)
    e.Layout.Override.ColumnHeaderTextOrientation = New Infragistics.Win.TextOrientationInfo(90, Infragistics.Win.TextFlowDirection.Horizontal)
    'Create your own Horizontal Orientation, rotating the headers into the opposite direction (3)
    e.Layout.Override.ColumnHeaderTextOrientation = New Infragistics.Win.TextOrientationInfo(-90, Infragistics.Win.TextFlowDirection.Horizontal)
End Sub`
于 2012-09-05T08:59:36.070 回答