DataTable dt = ((DataView) Dg1.ItemsSource).Table; DataTable dt = Dg1.ItemsSource as DataTable ; 前者可以将整个数据表更新到Access数据库,而后者则不可以