單項選擇題

在WinForm程序中,以編譯方式綁定到DsHer數(shù)據(jù)集中的T1表到DataGridView控件gridHer,正確的代碼為()

A.gridHer.DataSource=DsHer.Tables["T1"];
B.gridHer.Bind(DsHer,"T1");
C.gridHer.SetDataBinding(DsHer,"T1");
D.gridHer.DataBindings=DsHer["T1"];

微信掃碼免費搜題