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

How to set style of GridView Cell?

3 Answers 206 Views
GridView
This is a migrated thread and some comments may be shown as answers.
apoorv
Top achievements
Rank 1
apoorv asked on 10 Jan 2011, 11:15 AM
Hi,
     I am using MVVm pattern. I have a telrik radGridView which is bound to a datatable which has some uncertain columns and rows,and AutoGeneratedColumns property is true. Now I want to set CellStyle of GridView base on some condition,but I am not finding any CellStyle property in TelrikRdGridView. Is it possible to change the cellstyle of autogenerated columns using MVVM pattern?

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 10 Jan 2011, 03:45 PM
Hello Apoorv,

 
You may use AutoGeneratingColumn event to access auto-generated columns and assign for this particular column an appropriate CellStyleSelector


Please let me know if you need any further assistance.

All the best,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Makarand
Top achievements
Rank 1
answered on 25 Jan 2013, 05:54 AM
can you provide any example for this query.
0
Yoan
Telerik team
answered on 25 Jan 2013, 04:55 PM
Hi Makarand,

I can suggest you to check this forum thread where a similar question has already been discussed.

Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
apoorv
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Makarand
Top achievements
Rank 1
Yoan
Telerik team
Share this question
or