user422439
user422439

Reputation: 11

wpfToolkit : DataGrid Double click issue

I am using wpfToolkit:DataGrid in my application.

If 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.

Upvotes: 0

Views: 480

Answers (1)

Rachel
Rachel

Reputation: 132548

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

Upvotes: 1

Related Questions