black

ADO.NET

登录

多项选择题

已知变量ds引用某个DataSet对象,该DataSet对象中已包含一个表名为"table1"的数据表。在Windows窗体Form1中,为了将变量名为dataGrid1的DataGrid控件绑定到数据表"table1",可以使用代码()。

A.A
B.B
C.C
D.D

相关考题

单项选择题 已知ds为数据集对象。以下语句的作用是()。ds.Tables["Product"].Constraints.Add(new UniqueConstraint("UC_ProductName",new string[]{"Name","Class"},true));

单项选择题 dt为DataTable类型的变量,引用名为"Customers"的DataTable对象。该表中包含"CustomerID"、"CustomerName"、"Address"、"Telephone"等4列。将数据列"CustomerID"设为该表的主键的正确语句有:()

单项选择题 已知ds1、ds2分别代表两个不同的DataSet对象。其中ds1已包含名为“Customer”的DataTable对象,且该DataTable对象被变量dt_Customer引用。已知dt_Customer表中有100条记录,则执行下列语句后,新的数据表new_dt_Customer中包含()条记录。DataTable new_dt_Customer=dt_Customer.Copy();

All Rights Reserved 版权所有©在线考试题库网(zxkao.com)

备案号:湘ICP备14005140号-7

经营许可证号:湘B2-20140064