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
250
UltraGrid Remove select row border
posted

Hello,

i want to remove selected row and active row dotted border style in UltraGrid.
i am apply .isl file to whole application.
how can this? .isl file or manually change in grid??

Thanks
JD.

  • 469350
    Verified Answer
    Offline posted

    Hi JD,

    I'm not aware of any dotted border for a selected row. The ActiveRow or ActiveCell in the grid shows a dotted rectangle inside the row - this is called the Focus Rectangle. It indicates to the user which control on the form has input focus.

    Here's a KB article that tells you how to turn it off:

    HOWTO:How can I turn off the Focus Rectangle on an Infragistics Win Control?

    • 20
      posted in reply to Mike Saltzman
      Is it possible to do the same but only for one column?
      • 469350
        Offline posted in reply to A.J. Cook

        Hi A.J.

        You mean show the focus rectangle or most columns, but hide it for all the cells of one particular column? Yes, you could do that by tweaking the DrawFilter.

        Here's some sample code. This will hide the focus rectangle for everything except the "String 1" column.

        public bool DrawElement(Infragistics.Win.DrawPhase drawPhase, ref Infragistics.Win.UIElementDrawParams drawParams)
                {
                    var column = drawParams.Element.GetContext(typeof(UltraGridColumn)) as UltraGridColumn;
                    if (null != column &&
                        column.Key == "String 1")
                    {
                        return false;
                    }

                    return true;
                }
                public Infragistics.Win.DrawPhase GetPhasesToFilter(ref Infragistics.Win.UIElementDrawParams drawParams)
                {
                    return Infragistics.Win.DrawPhase.BeforeDrawFocus;
                }

      • 250
        posted in reply to Mike Saltzman

        Hello, Mike Saltzman

        Thanks u very much.