Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <DataGrid Grid.Column="1" Name="Info_DG" FontSize="18" CellEditEnding="Info_DG_CellEditEnding" >
- <DataGrid.Columns>
- <DataGridTextColumn Binding="{Binding BM}"/>
- <DataGridTextColumn Binding="{Binding BC}"/>
- <DataGridTemplateColumn>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Button Click="Button_Click"></Button>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- </Grid>
- MyObject obj = ((FrameworkElement)sender).DataContext as MyObject;
- object ID = ((Button)sender).CommandParameter;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement