I need to programmatically pin the first four colums...I'd also like to do this without showing the pins, i dont want the user to pin/unpin, i just want the first four columns not to go away when i scroll to the right...this should be simple and i cant find it anywhere.
UltraWinGrid
thanks,
Look for the property UltraGrid.DisplayLayout.Bands[0].Override.FixedHeaderIndicator to control visibility of the Pin indicator.
Doesn't work, already tried that.
Are you able to fix the columns at all?
I get the pinning idea as opposed to fixing the column width. I was just trying to find out if you have succeed in pinning columns programatically but just cannot hide the Pin button.
I have only done this through the UltraGrid designer. But everything else I have tried so far works in the same in the designer as it does programatically.
In the designer you need to set UltraGrid.DisplayLayout.Bands[0].Override.FixedHeaderIndicator to None to hid the Pin button. You also need to set the UltraGrid.DisplayLayout.UseFixedHeaders to true.
I think that should work for you too.
I don't want the column widths to be Fixed, I want the columns to be pinned, so that when I scroll right through my 20 columns in my grid, the first four columns stay visible the whole time.
this is similar to the 'freezing' a row or column in Excel