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

Change grid view row color in windows application

1 Answer 200 Views
GridView
This is a migrated thread and some comments may be shown as answers.
muktesh
Top achievements
Rank 1
muktesh asked on 22 Jan 2009, 12:32 PM
Hi,

I am trying to use the RAD grid view for winform. What i need is to change the color as the user moves the mouse over the rows.
I.e. A row should change its color when user hovers the mouse and as the user leaves the mouse from this row, it should again change color. This is very critical for me so any help will be appreciated.


Muktesh

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 23 Jan 2009, 06:57 PM
Hello muktesh,

Thanks for writing.
Generally all themes bundled with RadGridView - like the default (Vista), Telerik, and so on have already this hot-tracking effect turned on by default. Did you try changing the ThemeName of the grid using the smart tag designer option?

If you are creating a custom theme for RadGridView using the VisualStyleBuilder app you can try the following:
1. In the designer, select your favorite existing grid theme and Open Visual Style Builder - this way VSB will load the selected theme.
2. Load the RadGridView control from the File menu.
3. Scroll all the way down in the Control Structure dock window (on the left).
4. There you will see the GridDataRowElement
5. When you select it, you will see the various states that the row can be in, in tabs.
6. For every tab that has HotTracking, just change the background color.(Note that you must not change anything where there is !HotTracking)
7. Choose an appropriate name for your theme and save it from the File menu.

Here are some learning resources regarding the Visual Style Builder, in case you are not familiar.
Also there are movies on telerik tv, just click WinForms from the tabs below and watch the Visual Style Builder related videos.
Please write back if you have other questions or if you need further assistance. We'd be happy to help you.

Kind regards,
Victor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
muktesh
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or