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

Prevent selection of cell

2 Answers 190 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 03 Apr 2019, 02:29 PM

Hello

I use the GridView and I want to know how to select no cell when SelectionUnit = "FullRow" is set. Currently the row is selected, but also the clicked cell (is shown as selected). I'm using the Material-Theme and Version 19.1.220.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 05 Apr 2019, 11:59 AM
Hi Alex,

The border which you are referencing is the current cell. To remove it you can create an implicit style which targets GridViewCell and set the CurrentBorderBrush property to Transparent. 
<Style TargetType="telerik:GridViewCell">
    <Setter Property="CurrentBorderBrush" Value="Transparent"/>
</Style>

This behavior is described in Setting the BorderBrush of the CurrentCell section in our Styling Cells help article.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Alex
Top achievements
Rank 1
answered on 05 Apr 2019, 02:30 PM
Hi Dinko,

Thank you. That was what I was looking for.

Regards
Alex
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Alex
Top achievements
Rank 1
Share this question
or