Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

data grid row button is not fire on single click.

$
0
0

When I fill the details and bind those in data grid, then I have to fire the click event on edit button click in the row of data grid. Unable to do this in single click, but it fires on the second click.

I have used following code:

<DataGridTemplateColumn.CellTemplate><DataTemplate><StackPanel><Button Grid.Row="1" Name="PreviewNotificationPopup"
                                                                            Click="PreviewNotificationPopup_Click" 
                                                                            VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="True" Style="{StaticResource addBtn}"><Image Source="Resources/preview.png" Width="24"/></Button></StackPanel></DataTemplate></DataGridTemplateColumn.CellTemplate>


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>