Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
How to do an identical suppress on a column?
posted

How can I make the ultrawingrid display the following data:

7 Mantle

8 Berra

8 Dickey

9 Maris

to display like this:

7 Mantle

8 Berra

   Dickey

9 Maris

In other words I want to suppress identical values in the first column. 

Thanks!

  • 469350
    Offline posted

    Try the MergedCellStyle property on the column. I think that will give you pretty close to what you want.


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridBand band = layout.Bands[0];

                band.Columns["Int32 1"].MergedCellStyle = MergedCellStyle.Always;
            }