Ticket Q466748
Visible to All Users

How to get FocusedRow's color

created 11 years ago

CLONED FROM [Q570580: Problem with CheckBoxRowSelect]
Hi,
As I would like to have the focusedrow appearance like the appearance of a checked row (or the focusedrow when there is no checkedbox column), do you have the color code of this ? (I am using the Office 2013 skin).
Hope I am clear
Regards

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hello,
You can get the FocusedRow color from the current skin as follows:

C#
DevExpress.Skins.Skin currentSkin; DevExpress.Skins.SkinElement element; string elementName; currentSkin = DevExpress.Skins.CommonSkins.GetSkin(gridControl1.LookAndFeel); Color color = currentSkin.Colors["Highlight"];

Please try this solution and inform us of your results.
I am looking forward to your reply.

    Show previous comments (1)
    DevExpress Support Team 11 years ago

      Hello,
      I have added your code to the sample and all works as expected. Attached is a project and video that illustrate my attempts to reproduce your scenario and the issue you are experiencing. Would you please modify the sample to illustrate the issue? We will do our best to find an appropriate solution for you.
      I hope to hear from you soon.

        My bad, I was just doing something wrong, it works fine now.
        Thank you very much for your help !

        DevExpress Support Team 11 years ago

          Hello,
          I am glad to hear that my assistance was helpful to you. Feel free to contact us if you have further questions.

          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.