Change row backcolor

5 posts, 1 answers
  1. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 18 Feb 2012 Link to this post

    hi i need to change the GridView row backcolor using index in the RadButton Click event
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 20 Feb 2012 Link to this post

    Hi Johny,

    In order to do this, you could (when you click your button), set a tag in the row to a value of your choice, and then call InvalidateRow of the row, which will force a RowFormatting event. In the RowFormatting event you can inspect for the tag and set the row back colour as needed.
    In order to format rows, please refer to this help topic

    Hope that help
    Richard
  3. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 24 Feb 2012 Link to this post

    Hi,

    Did this work for you? If it helped, please remember to mark as answer so others can find the solution too.
    Thanks
    Richard
  4. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 24 Feb 2012 Link to this post

    80% time i found out myself before u guys answer
  5. Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 24 Feb 2012 Link to this post

    Hello Johnny,

    Please note that replies in our forums are not guaranteed, although we address most of the forums questions within 72 hours. If you need a quick response, please consider purchasing one of the licenses that we offer. These licenses will allow you to open support tickets instead of forums. Support tickets are reviewed before forum threads and the response time there depends on the license that you have (24h or 48h). You can see this page for more information about the available support options. I checked your account status and generally speaking this account is not currently entitled receive to support (neither Trial, nor Dev) from the Telerik staff.

    Regards,
    Stefan
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top