Hi
Is it possible to move a grid column to a different position via code within grid’s initializelayout event?
Thanks
Regards
I believe what you may be looking to do can be found on
.Colums("YourColumnKey").Header.VisiblePosition = x
This allows you to designate the position of the columns in the grid.
Nick
I tried below but it had no effect;
Private Sub grdEventList_InitializeLayout(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles grdEventList.InitializeLayout
Dim gridColumns As ColumnsCollection = Me.grdEventList.DisplayLayout.Bands(0).Columns
gridColumns(
"Tr").RowLayoutColumnInfo.OriginX = 24
End Sub
What am I missing?
You can set the UltraGridColumn.LayoutInfo.OriginX property; this is a zero-based value that describes the visible position as relative to the left edge of the grid.