Here is the XAML used to create a datagrid:

```
<DataGrid
            x:Name="dgrComments"
            Height="200">
            <DataGrid.Columns>
            <DataGridTextColumn
                Binding="{Binding Path=RepairID}"
                Visibility="Hidden" />
            <DataGridTextColumn
                Binding="{Binding Path=Sequence}"
                Visibility="Hidden" />
            <DataGridTextColumn
                Binding="{Binding Path=Entry}"
                DisplayIndex="0" />
            <DataGridTextColumn
                Binding="{Binding Path=LastUpdate}"
                Visibility="Hidden" />
        </DataGrid.Columns>
    </DataGrid>

```

Here is how I bind data to the grid ("Sequence" is a column in the RepairComments table):

```
RepairFilter=<a text string that is a valid filter>
dvComments = New DataView(dsPIM.Tables("RepairDetails"), RepairFilter, "Sequence", DataViewRowState.CurrentRows)
dgrComments.ItemsSource = dvComments

```

This all works fine EXCEPT that the datagrid dgrComments.LostFocus event is firing whenever the the user changes the selected row. Why?