When I create a ultragrid with the first column containing a row selector arrow
[>]
How can I stop that arrow column from scrolling away to the left when I scroll horizontally?
MS Access does not do this and I have been asked to replicate this behavior.
I have found that if I use
myUltraGrid.DisplayLayout.UseFixedHeaders =
true
then it will not scroll. But then I have the pins at the top, which I do not necessarily want.
Interestingly, if I fix column 0, then the first USER column stays put! In other words, that row selector column is not addressable by index, it would seem.
Excellent, many thanks!
Hi,
UseFixedHeaders will fix the Row Selectors, so there is no need to address the RowSelectors by index.
To turn off the pin indicators, use the FixedHeaderIndicator property.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand band = layout.Bands[0]; UltraGridOverride ov = layout.Override; layout.UseFixedHeaders = true; ov.FixedHeaderIndicator = FixedHeaderIndicator.None; }