开发者

wpfToolkit : DataGrid Double click issue

I am using wpfToolkit:DataGrid in my application.

If 开发者_JAVA百科I tried to doubleclick on the corner of selectedrow ,It gives null value.

But If I click in the middle of the selectedrow I am able to get the cell value.

Kindly help me to get the selectedrow cell value irrespective of by dobule clicking any place of the selectedrow.


Try giving your cell a background color. Quite often the default background color of WPF controls is transparent, so they do not register things like Click events. For example, a TextBlock with a DoubleClick event to copy the text will only work if you double-click on the text itself and not any of the whitespace around it unless you set a background color.

This will also show you if the area you are clicking on is considered part of the Cell or if it is just Margin/Padding

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜