How to set style of GridView Cell?

4 posts, 0 answers
  1. apoorv
    apoorv avatar
    4 posts
    Member since:
    Jan 2011

    Posted 10 Jan 2011 Link to this post

         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?
  2. Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 10 Jan 2011 Link to this post

    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>>
  3. Makarand
    Makarand avatar
    11 posts
    Member since:
    Oct 2011

    Posted 24 Jan 2013 Link to this post

    can you provide any example for this query.
  4. Yoan
    Yoan avatar
    1182 posts

    Posted 25 Jan 2013 Link to this post

    Hi Makarand,

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

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top