<DataGrid.Columns>
    <DataGridTextColumn Header="ID"
                        Binding="{Binding Path=ID}"/>
    <DataGridTextColumn Header="仪器编号"
                        Binding="{Binding Path=仪器编号}"
                        Foreground="Black"/>
    <DataGridTextColumn Header="管道类型"
                        Binding="{Binding Path=管道类型}"
                        Foreground="Black" />
    <DataGridTextColumn Header="管道编号"
                        Binding="{Binding Path=管道编号}"
                        Foreground="Black" />
    <DataGridTextColumn Header="流量(m3/min)"
                        Binding="{Binding Path=流量}"
                        Foreground="Black" />
    <DataGridTextColumn Header="CH4(%)"
                        Binding="{Binding Path=CH4}"
                        Foreground="Black" />
    <DataGridTextColumn Header="纯量(m3/min)"
                        Binding="{Binding Path=纯量}"
                        Foreground="Black" />
    <DataGridTextColumn Header="压力(kPa)"
                        Binding="{Binding Path=压力}"
                        Foreground="Black" />
    <DataGridTextColumn Header="温度(℃)"
                        Binding="{Binding Path=温度}"
                        Foreground="Black" />
    <DataGridTextColumn Header="测量日期"
                        Binding="{Binding Path=测量日期}"
                        Foreground="Black" />
    <DataGridTextColumn Header="测量时间"
                        Binding="{Binding Path=测量时间}"
                        Foreground="Black" />
</DataGrid.Columns>
public void Read()
{
    OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + dataBaseName);// 连接数据库
    conn.Open();// 打开数据库
    string sql = "select * from GasDataTable";

    OleDbDataAdapter ad = new OleDbDataAdapter(sql, conn);

    DataSet ds = new DataSet();

    ad.Fill(ds);

    MainWindow.Class.dataGrid.ItemsSource = ds.Tables[0].DefaultView;
    MainWindow.Class.dataGrid1.ItemsSource = ds.Tables[0].DefaultView;    
    conn.Close();
}