Ticket Q574004
Visible to All Users

ASPxGridView - Only a part of a row is painted with the correct color assigned to the e.Row.BackColor property in HtmlRowPrepared event if text wraps with column

created 11 years ago

Hello

i have a small problem with the grid .
I focus a line and press a button that is supposed to paint the row blue .
When the row has a ling text that wraps the half line is painted blue .

I am sending you a demo project to see this issue . Open the page and just press "test" button in a line .

Thanks

Comments (1)
DevExpress Support Team 11 years ago

    Hi,
    Thank you for the sample project. We need some additional time to examine it. We will update this thread once we have results to report.

    Answers approved by DevExpress Support

    created 11 years ago (modified 11 years ago)

    Hi,
    Thank you for your patience. Note that the most part of visual elements in our controls are painted by using CSS Image Sprites. In your particular scenario, this is a Focused Row. You can make sure of that by disabling it (ASPxGridView.SettingsBehavior.AllowFocusedRow = false). However, I understand that you might need this feature. Fortunately, there is a solution that allows you to keep this row and avoid a background image. Just add the following line of code to the HtmlRowPrepared event handler:

    C#
    e.Row.Style[HtmlTextWriterStyle.BackgroundImage] = string.Empty;

    Attached is the updated sample. I hope this information will help you.
    Thanks,
    Alessandro.

      Comments (2)
      GT GT
      Grigoris Tsolakidis 11 years ago

        Hello
        Worked perfect.
        Thanks

        Alessandro (DevExpress Support) 11 years ago

          You are welcome! We are always happy to help you in case of any problems.

          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.