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

How to have Highlight on a Cell

5 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
SKmatt
Top achievements
Rank 1
SKmatt asked on 04 Mar 2008, 02:07 PM
hello,

in a gridview
I'm looking to have a highlight but only on a cell and not on a row when mouse is over.
 
My gridview is automaticaly load by a Sqltable.

And I want to set a fix width for my columns is it possible and how I do it ? 
 
thanks
(I'm french and rookie in windform)

5 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 04 Mar 2008, 05:18 PM
Hi SKmatt,

Thank you for contacting us.

You can change the highlighting mode in RadGridView by using the Visual Style Builder. You should remove all mouse-related conditions for the GridRowElement and add similar conditions for the GridCellElement.

If you need tutorials about the Visual Style Builder, please look at our online videos:

http://www.telerik.com/support/videos/videos-list/b220i-kcd.aspx

It is possible to set a fixed width for RadGridView columns by using the Width property of the GridViewColumn, as shown below:

this.radGridView1.Columns["Name"].Width = 100; 

You can also disable the resizing of columns through the user interface by setting the AllowColumnResize property to false:

this.radGridView1.MasterGridViewTemplate.AllowColumnResize = false
 

I hope this helps. Let me know, if you need further assistance.

Regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
SKmatt
Top achievements
Rank 1
answered on 06 Mar 2008, 01:40 PM
Hi, thank you for answering me

I try the highlight on a cell. But i don't find gridCellElement, so i try on GridDataCellElement But it doesn't.

I don't understand where I've to go I think.

I've watch all video on style builder.
Thank You again for support. :o)

0
Nikolay
Telerik team
answered on 10 Mar 2008, 08:41 AM
Hi SKmatt,

Please, accept my apologies for the delayed response.

I am sending you a movie which demostrates how to achieve the desired theme customization. I have also attached the theme made during the movie shot.

If you need additional assistance, do not hesitate to contact me.

All the best,
Nikolay
the Telerik team
0
SKmatt
Top achievements
Rank 1
answered on 10 Mar 2008, 04:35 PM
Thank you a lot.

Thanks for your help and video. thanks for your support.

It was a pleasure to asking you for help. You made good job I hope your boss know it :o)

Have a good day
0
Accepted
Nikolay
Telerik team
answered on 13 Mar 2008, 02:31 PM
Hello,

I am glad to hear that your issue has been resolved. If you have any additional questions do not hesitate to contact me.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
SKmatt
Top achievements
Rank 1
Answers by
Jack
Telerik team
SKmatt
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or