关于GridView使用,说法错误的是()A、GridView会生成以表格进行布局的列表B、GridView内置了分页,排序,以及增、删、改、查等功能。C、给GridView设置数据源时,可以指定该控件的DataSourceID为某数据源控件IDD、给GridView设置DataSource属性后,必须调用DataBind()方法。且DataSource和DataSourceID不可以同时指定。

题目

关于GridView使用,说法错误的是()

  • A、GridView会生成以表格进行布局的列表
  • B、GridView内置了分页,排序,以及增、删、改、查等功能。
  • C、给GridView设置数据源时,可以指定该控件的DataSourceID为某数据源控件ID
  • D、给GridView设置DataSource属性后,必须调用DataBind()方法。且DataSource和DataSourceID不可以同时指定。

相似考题
更多“关于GridView使用,说法错误的是()”相关问题
  • 第1题:

    关于使用FTP下载文件,下列说法中错误的是


    正确答案:B
    在FTP服务器程序允许客户机进入FTP站点并下载文件之前,必须使用一个FTP账号和密码进行登录,一般专有的FTP站点只允许使用特许的账号和密码登录。还有一些FTP站点允许任何人进入,但是客户机也必须输入账号和密码,在这种情况下,通常可以使用“anonymous”作为账号,使用客户的电子邮件地址作为密码即可,这种FTP站点被称为匿名FTP站点。

  • 第2题:

    利用GridView和DetailsView显示主从表数据时,DetailsView中插入了一条记录需要刷新GridView,则应把GridView。DataBind()方法的调用置于()事件的代码中。

    • A、GridView的ItemInserting
    • B、GridView的ItemInserted
    • C、DetailsView的ItemInserting
    • D、DetailsView的ItemInserted

    正确答案:D

  • 第3题:

    GridView支持以图片形式来显示员工照片,这时需要使用自定义绑定列()

    • A、ImageField
    • B、ButtonFiel
    • C、Image
    • D、PictureBox

    正确答案:A

  • 第4题:

    对于GridView的CommandField列,说法错误的是()

    • A、CommandField列为命令列,主要包含编辑、更新、取消、删除、选定等按钮操作。
    • B、CommandField是一个特殊的按钮列,点击时,不同类型的命令列会触发相对应的事件。
    • C、当点击CommandField列时,都会触发GridView的RowCommand事件。
    • D、以上都不对 。

    正确答案:D

  • 第5题:

    GridView的属性()确定是否分页


    正确答案:AllowPaging

  • 第6题:

    下面关于Struts报错机制说法正确的是()

    • A、强制使用国际化
    • B、错误信息保存在session中
    • C、使用标签显示错误信息
    • D、也可以使用显示错误信息

    正确答案:A,C

  • 第7题:

    GridView控件有什么功能?


    正确答案: ①绑定至数据源控件;
    ②内置排序功能;
    ③内置更新和删除功能;
    ④内置分页功能;
    ⑤内置行选择功能;
    ⑥用于超链接列的多个数据字段;
    ⑦可通过主题和样式进行自定义的外观;
    ⑧以编程方式访问GridView对象模型以动态设置属性、处理事件。

  • 第8题:

    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform.  You are creating an ASP.NET Web application using .NET Framework 4.0. The Web application comprises a class named Employee with properties named as First Name, Last Name, and Age. You add a Web page in which you get a list of Employee objects and display those objects in a GridView control. You are required to add code so that the GridView row is highlighted in red color if the age of the employee is less than 21 years.  What will you do to accomplish this?()

    • A、Use the RowCommand event of the GridView control.
    • B、Use the SelectedlndexChanged event of the GridView control.
    • C、Use the RowDataBound event of the GridView control.
    • D、Use the RowEditing event of the GridView control.
    • E、Use the RowUpdated event of the GridView control.

    正确答案:C

  • 第9题:

    在GridView控件中,可以使用哪个属性设置往返页面链接的一些属性?()

    • A、PagerStyle
    • B、PagerSettings
    • C、PageSize
    • D、PageDown

    正确答案:B

  • 第10题:

    多选题
    如果在GridView中显示图书封面,说法正确的是()。
    A

    可以使用模列板

    B

    可以使用ImageField

    C

    无法显示

    D

    只能通过编码实现


    正确答案: C,D
    解析: 暂无解析

  • 第11题:

    单选题
    关于GridView使用,说法错误的是()
    A

    GridView会生成以表格进行布局的列表

    B

    GridView内置了分页,排序,以及增、删、改、查等功能。

    C

    给GridView设置数据源时,可以指定该控件的DataSourceID为某数据源控件ID

    D

    给GridView设置DataSource属性后,必须调用DataBind()方法。且DataSource和DataSourceID不可以同时指定。


    正确答案: D
    解析: 暂无解析

  • 第12题:

    多选题
    下面关于Struts报错机制说法正确的是()
    A

    强制使用国际化

    B

    错误信息保存在session中

    C

    使用标签显示错误信息

    D

    也可以使用显示错误信息


    正确答案: C,B
    解析: 暂无解析

  • 第13题:

    如果在GridView中显示图书封面,说法正确的是()。

    A.可以使用模列板

    B.可以使用ImageField

    C.无法显示

    D.只能通过编码实现


    参考答案:A, B

  • 第14题:

    如果对定制后的GridView实现排序功能,除设置GridView的属性AllowSorting的值为True外,还应该设置()属性。

    • A、SortExpression
    • B、Sort
    • C、SortField
    • D、DataFieldText

    正确答案:A

  • 第15题:

    简述可以使用哪些方法控制GridView控件的外观。


    正确答案:可以利用BackColor、ForeColor、BorderColor、BorderStyle、BorderWidth等属性用于外观控制。

  • 第16题:

    如果在GridView中显示图书封面,说法正确的是()。

    • A、可以使用模列板
    • B、可以使用ImageField
    • C、无法显示
    • D、只能通过编码实现

    正确答案:A,B

  • 第17题:

    GridView中能调整列的顺序


    正确答案:正确

  • 第18题:

    下面不属于控件的是()

    • A、DataSet
    • B、Repeater
    • C、SqlDataSource
    • D、GridView

    正确答案:A

  • 第19题:

    下列关于U盘的说法中,正确的是()。

    • A、不易携带
    • B、使用不方便
    • C、体积大
    • D、以上说法都是错误的

    正确答案:D

  • 第20题:

    Gridview: How to change the image of an image control place in each row in a gridview:()

    • A、ItemDataBound
    • B、Init 
    • C、Prerender 
    • D、<something I don‟t remember>

    正确答案:A

  • 第21题:

    问答题
    简述可以使用哪些方法控制GridView控件的外观。

    正确答案: 可以利用BackColor、ForeColor、BorderColor、BorderStyle、BorderWidth等属性用于外观控制。
    解析: 暂无解析

  • 第22题:

    单选题
    利用GridView和DetailsView显示主从表数据时,DetailsView中插入了一条记录需要刷新GridView,则应把GridView。DataBind()方法的调用置于()事件的代码中。
    A

    GridView的ItemInserting

    B

    GridView的ItemInserted

    C

    DetailsView的ItemInserting

    D

    DetailsView的ItemInserted


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another. What should you do?()
    A

    Replace the GridView control with a ListView control.

    B

    Set the ClientIDMode attribute to Predictable in the web.config file.

    C

    Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.

    D

    Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control.


    正确答案: A
    解析: 暂无解析