單項(xiàng)選擇題在DataGridView控件中綁定數(shù)據(jù)集時(shí),下面哪個(gè)代碼是正確的()
A.dgv.DataBinding= ds.Tables(0)
B.dgv.Binding= ds
C.dgv.DataSource = ds.Tables(0)
D.dgv.Source = ds
您可能感興趣的試卷
你可能感興趣的試題
1.單項(xiàng)選擇題在DataGridView控件中以整行進(jìn)行選擇,需要設(shè)置SelectionMode的屬性值為()
A.FullRowSelect
B.FullColumnSelect
C.RowHeaderSelect
D.ColumnHeaderSelect
2.單項(xiàng)選擇題下面()控件以表格形式顯示數(shù)據(jù)表。
A.DataSet
B.DataGridView
C.BindingSource
D.BindingNavigator