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
491
Hide the pencil in the row selector
posted

Hi,

When I'm in a grid and change value of cell, in the RowSelector at the left of the grid, a small pencil image is displayed.

It is possible to never show this image? I can call the method UpdateData of the grid to hide it but it is possible to never show it?

 

Thank you.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    You can hide the RowSelectors entirely by using the RowSelectors property on the override.

    So something like:


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

                ov.RowSelectors = DefaultableBoolean.False;
            }

    If you want to keep the RowSelectors, then you will need to change the images. Do you want to remove all RowSelector images or just the pencil?

    Whatever you want to do, you can do it using the RowSelectorImages property on the DisplayLayout.

    So, for example, this will get rid of the pencil image on an inactive row:

    layout.RowSelectorImages.DataChangedImage = null;

    If you want to remove the pencil on the active row, you could do this:

    layout.RowSelectorImages.ActiveAndDataChangedImage = null;

    But that will also remove the little active row triangle.

     

Reply Children