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

Show both selected row and selected cell

1 Answer 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lovsten
Top achievements
Rank 1
Lovsten asked on 11 Sep 2007, 07:58 AM
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?

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 11 Sep 2007, 02:50 PM
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
Tags
GridView
Asked by
Lovsten
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or