Click here to Skip to main content
15,914,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a data grid view with Rowselection method Full Row Select.
(I need to keep this, please do not suggest to make it something else)

When control moves to a cell in the gird, a very very thin red rectangle is drawn around (by default) This is so thin that it can barely be seen.

I want to make it thicker.
Please advise how?

Cellborder style did not work.

Thanks
Posted

1 solution

Chk this link hope this wil solve your question :
In this Link they requested to hide the border insted of hide you can use your border size there

Remove the border from a selected cell in a row in datagrid[^]
here i have made value=3 insted of 0.
hope this will solve your issue.
CSS
datagrid.cellstyle>
 
                        <style targettype="DataGridCell">
 
                            <style.triggers>
 
                                <trigger property="IsSelected" value="True">
 
                                    <setter property="BorderThickness" value="3" />
 
                                </trigger>
 
                            </style.triggers>
 
                        </style>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900