Show both selected row and selected cell

2 posts, 0 answers
  1. Lovsten
    Lovsten avatar
    72 posts
    Member since:
    Aug 2007

    Posted 11 Sep 2007 Link to this post

    I am using the Vista theme at the moment, which nicely shows the selected row. But I'd like to at the same time also show which cell is selected.

    I've set 

    grid.SelectionMode = GridViewSelectionMode.CellSelect

    and I've tried to change the theme under
    GridRowElement /root element/ 
        GridCellBoundColumnElement
    to have an extra state IsSelected. But that doesn't work.

    How can I do this?

  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 11 Sep 2007 Link to this post

    Hello Lovsten,

    You are on the right track. Your condition must check if Telerik.WinControls.UI.GridCellElement.IsSelected is set to true for elements of type DataCell in GridRowElement. I have attached a sample theme.
     

    All the best,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top