Hello!
I crashed my mind while I experimented with draw filter :-)
I download sample UltraWinGrid_ActiveRow_Border_CS, upgrade this to 9.2 and add micro modifications:
a) change Rect to ClipRect in draw filter
b) add code to replace default black border color to light gray
this.ultraGrid1.DisplayLayout.Override.CellAppearance.BorderColor = Color.FromArgb(0xCC, 0xCC, 0xCD);this.ultraGrid1.DisplayLayout.Override.RowAppearance = new Appearance{ BorderColor = Color.FromArgb(0xCC, 0xCC, 0xCD),};
c) fix headers in the designer
this.ultraGrid1.DisplayLayout.UseFixedHeaders = true;
At last run.
As you see in process of horizontal scrolling overlapped gray rectangle has been appearanced. This unwanted rectangle around the active cell has been drawn at DataAreaUIElement level after borders drawn at RowCellAreaUIElement level. Color of this rectangle equals border color of CellAppearance.
Hi,
Okay, I see the problem now. The DrawFilter really confused the issue. I'm not sure why you included that in the first sample.
Anyway, this is pretty clearly a bug, and I am going to forward this thread over to Infragistics Developer Support so they can check this out and get it fixed.
I wrote another sample which reproduce this incident. For clarity's sake I didn't use drawfilter and set red border color for cell and row.
1. Build and Run this sample
2. Select cell
3. Scroll to right
So red border of active cell is overlapped instead of clipped with RowSelector's column.
Okay, I ran your sample and clicked on a cell in row 3 in the String 2 column.
I see a red border around the row and a gray border around the cell.
Now I scroll the grid to the right so that the String 2 column is partially visible.But I don't see the behavior you are getting.
My guess is that something is incorrect in your DrawFilter, but since I can't see the problem and don't know what your DrawFilter is supposed to be doing, it's hard for me to figure out what's wrong.
Why are you using a DrawFilter? What are you trying to accomplish?
In order that reproduce such behaviour you have to activate any cell (without entering to edit mode) and do horizontal scrolling to left until left border of active cell is intersecting with RowSelector's zone. You will see gray rectangle over RowSelector's zone.
I ran the sample you attached here, but I cannot reproduce the behavior you are describing. What do I need to do with this sample to get this to happen?