Hi all,

I have a button inside a datagrid (code below).. How do I capture the row
data when I click on the Delete button?
I tried getting the row data from the DataGrid SelectedItem property, but it
only returns the first row that gets selected..

          <my:DataGrid x:Name="uxLifecycleGrid" AutoGenerateColumns="False"
Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
                <my:DataGrid.Columns>
                    <my:DataGridTemplateColumn Width="60">
                        <my:DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Button x:Name="uxDelete" Content="Delete"
Click="uxDelete_Click" />
                            </DataTemplate>
                        </my:DataGridTemplateColumn.CellTemplate>
                    </my:DataGridTemplateColumn>
                </my:DataGrid.Columns>
            </my:DataGrid>


Any idea? Thanks heaps



------------------------------------------------------------------- 
OzSilverlight.com - to unsubscribe from this list, send a message back to the 
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net

Reply via email to