This is a migrated thread and some comments may be shown as answers.

Change row backcolor

4 Answers 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 2
Johnny asked on 18 Feb 2012, 02:09 PM
hi i need to change the GridView row backcolor using index in the RadButton Click event

4 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 20 Feb 2012, 02:44 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 24 Feb 2012, 10:43 AM
Hi,

Did this work for you? If it helped, please remember to mark as answer so others can find the solution too.
Thanks
Richard
0
Johnny
Top achievements
Rank 2
answered on 24 Feb 2012, 11:12 AM
80% time i found out myself before u guys answer
0
Stefan
Telerik team
answered on 24 Feb 2012, 04:40 PM
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 >>
Tags
GridView
Asked by
Johnny
Top achievements
Rank 2
Answers by
Richard Slade
Top achievements
Rank 2
Johnny
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or