当前单元格周围的彩色矩形 [英] Coloured rectangle around current cell

查看:97
本文介绍了当前单元格周围的彩色矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个带有Rowselection方法Full Row Select的数据网格视图。

(我需要保留这个,请不要建议让它成为别的)



当控件移动到网格中的一个单元格时,会绘制一个非常非常薄的红色矩形(默认情况下)这个很薄,几乎看不到。



我想让它变厚。

请指教如何?



Cellborder风格不起作用。



谢谢

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

推荐答案

Chk此链接希望这将解决你的问题问题:

在这个链接中,他们要求隐藏隐藏的边框,你可以在那里使用你的边框大小



从datagrid中一行中选定的单元格中删除边框 [ ^ ]

这里我已经取得了值= 3的绝对值为0.

hope这将解决您的问题。

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.
datagrid.cellstyle>
 
                        <style targettype="DataGridCell">
 
                            <style.triggers>
 
                                <trigger property="IsSelected" value="True">
 
                                    <setter property="BorderThickness" value="3" />
 
                                </trigger>
 
                            </style.triggers>
 
                        </style>


这篇关于当前单元格周围的彩色矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆