Bug Report Q447868
Visible to All Users

The View is incorrectly painted if the "Locked View" image is shown and the BorderWidth property is set to a value greater than 0

created 12 years ago

The grid doesn't correctly handle the bitmap snapshot that is taken, when you call a views BeginUpdate and the BorderWidth of the grid > 0.

To repeat do the following:

  1. On a form add a TcxGrid (usual dbtable in my case, nothing else set up)
  2. Add a checkbox and in the OnClick event do the following:
Delphi
if <checkbox>.Checked then <view>.BeginUpdate(lsimImmediate) else <view>.EndUpdate;

Run and try checking/unchecking - everything is ok.

Now set the grids BorderWidth to something > 0 (the bigger the better effect!) and repeat the checking/unchecking. The image of the grid is dislocated inside the grid area - seems to be a double use of the borderwidth?

/Anders

Comments (2)

    You can circumvent the problem by using Margins instead, but I thought you should know :-)

    DevExpress Support Team 12 years ago

      Hello,
      Thank you for your report. I have reproduced the described behavior. I have forwarded this issue to our developers for research.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.