Attached is the 3.3 TraderGrid screen shot.
I meant 2.1.0.9, sorry.
I copied and changed code from 3.3. I added the following method to my GridControl in 2.1.0.9 codebase:
public void DrawClippedGrid( Graphics g, bool shouldClip, Rectangle rectClip )
{
// Get rectangle to be drawn.
if (rectClip.IsEmpty)
rectClip = this.GridBounds;
else if (!rectClip.IntersectsWith(this.GridBounds))
return; // ... nothing needs drawn
rectClip = Rectangle.Intersect(this.GridBounds, rectClip);
if (shouldClip)
g.SetClip(rectClip);
// Compute rows and colums.
int topRow, leftCol, bottomRow, rightCol;
this.ViewLayout.RectangleToClientRowCol(rectClip, out topRow, out leftCol, out bottomRow, out rightCol, GridCellSizeKind.ActualSize);
topRow = Math.Max(0, topRow);
leftCol = Math.Max(0, leftCol);
this.OnDrawClientRowCol(topRow, leftCol, bottomRow, rightCol, g, rectClip);
}
>>>I simply copied DrawClippedGrid
>
>When I tried to move the DrawClippedGrid method exposed in the 3.3 GriControlbase into the performance sample of 2.1.0.9, I could not get it to work. The DrawClippedGrid accesses private members of GridControlBase.
>
>Can you upload a sample that I can run with 2.1.0.9 and see the problem?
TraderGridIssue.zip