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.
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?
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; }