Try this one, It may be help to your question.
List<Table1> TestCollection = new List<Table1>();
public void BindData()
{
TestCollection = MyDataEntities.Table1.Where(x=>x.OnLIst == true).ToList();
DataGrid.ItemsSource = TestCollection;
}
then you can access your data each one by one selecting on the Datagrid.
private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
Table1 NewTable = TestCollection[DataGrid.SelectedIndex];
}