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

题目

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

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

相似考题
参考答案和解析
正确答案:D
更多“利用GridView和DetailsView显示主从表数据时,DetailsView中插入了一条记录需要刷新GridView,则应把GridView。DataBind()方法的调用置于()事件的代码中。A、GridView的ItemInsertingB、GridView的ItemInsertedC、DetailsView的ItemInsertingD、DetailsView的ItemInserted”相关问题
  • 第1题:

    Web程序中的GridView控件和Windows程序的()控件类似。


    正确答案:DataGrid/DataGridView

  • 第2题:

    经过设置,DetailsView能同时显示多条记录


    正确答案:错误

  • 第3题:

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


    正确答案:AllowPaging

  • 第4题:

    GridView中能调整列的顺序


    正确答案:正确

  • 第5题:

    GridView中内置了插入数据的功能


    正确答案:错误

  • 第6题:

    利用DetailsView控件增添记录特别方便,因为不需要另外增加输入框。


    正确答案:正确

  • 第7题:

    GridView设置分页后,默认显示()记录。

    • A、5
    • B、10
    • C、15
    • D、20

    正确答案:B

  • 第8题:

    Which event of the GridView class occurs when the Edit button of a row is clicked, but before the GridView control enters edit mode?()

    • A、RowEntered
    • B、RowEdited
    • C、RowEntering
    • D、RowEditing

    正确答案:D

  • 第9题:

    问答题
    在GridView中的RowEditing事件在什么时候响应?

    正确答案: 当用户通过单击将当前数据项置于编辑状态,会响应。(MSDN上说:当GridView内生成Edit事件时激发)
    解析: 暂无解析

  • 第10题:

    单选题
    GridView设置分页后,默认显示()记录。
    A

    5

    B

    10

    C

    15

    D

    20


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

  • 第11题:

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

    GridView的ItemInserting

    B

    GridView的ItemInserted

    C

    DetailsView的ItemInserting

    D

    DetailsView的ItemInserted


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

  • 第12题:

    判断题
    GridView中内置了插入数据的功能
    A

    B


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

  • 第13题:

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


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

  • 第14题:

    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.

    正确答案:B

  • 第15题:

    在GridView中的RowEditing事件在什么时候响应?


    正确答案:当用户通过单击将当前数据项置于编辑状态,会响应。(MSDN上说:当GridView内生成Edit事件时激发)

  • 第16题:

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

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

    正确答案:A

  • 第17题:

    在GridView换页事件对应的方法中,如果需要获得GridView的当前页的页号,使用的技术为()。

    • A、 e.PageIndex
    • B、 e.IndexPage
    • C、 e,PageNowIndex
    • D、 e.CurrentPage

    正确答案:A

  • 第18题:

    GridView控件有什么功能?


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

  • 第19题:

    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

  • 第20题:

    判断题
    GridView中能调整列的顺序
    A

    B


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

  • 第21题:

    单选题
    在利用GridView控件进行分页显示时,()属性可以设置每个逻辑页显示的记录条数。
    A

    PageIndex

    B

    PageSize

    C

    PageCount

    D

    AllowPaging


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

  • 第22题:

    填空题
    Web程序中的GridView控件和Windows程序的()控件类似。

    正确答案: DataGrid/DataGridView
    解析: 暂无解析

  • 第23题:

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

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

    B

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

    C

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

    D

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


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