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
445
Changing expanded row appereance (dont change your x-Position please :( )
posted

Hiya team-Infragistics.

I recently started programming a lil something with your UltraWinGrid.

 

Basicly the Grids DataSource is filled with a List (Of ...)

The Item in the list can have a new List(Of ...) attached and so on.

 

This leads to rows I can expand and collapse.

Right now the Grid will shift every expanded row about 16Pixel to the right from its original row.

Is there any way to avoid changing the x-Position of the expanded row?

Here is a screen of what I get right now:

and here is what I'd like to achieve:



I hope you'll understand what I mean. I'll try to explain better if needed. Thx in advance.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    This should do it:


            private void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;

                foreach (UltraGridBand band in layout.Bands)
                {
                    if (band.Index > 0)
                    {
                        band.Indentation = 0;                   
                    }
                }
            }

Children
No Data