The property is off the DisplayLayout, called StationaryMargins. It's an Enum, use the "Header" value.
DisplayLayout.StationaryMargins = StationaryMargins.Header.
I actually have problem of fixing a column when scrolling horizontally. Could you please advise how can I do that?
Thanks.
Me.gridName.DisplayLayout.UseFixedHeaders = True
Me.gridName.Columns.FromKey("columnKey").Header.Fixed = True