Previous Section  < Day Day Up >  Next Section

Chapter 12

A1:

  1. False

  2. True

  3. True

  4. False

  5. False

  6. False

  7. True

  8. False

  9. True

A2:

Simple binding occurs on a control that displays a single value; complex binding associates a control with a collection of data in a data source. In one-way data binding, the control is bound to the source for read-only purposes. Changes to the control's value are not reflected in the data source. Two-way binding permits the data source to be updated by changing the control's value(s).

A3:

The properties on a custom data source that expose the bound data must be writable, so the object can be updated.

A4:


DataGridView.SelectionMode =

  DataGridViewSelectionMode.FullRowSelect;


A5:

A ListBox cannot be included in a DataGridView cell. Other controls that can be included are a Link, CheckBox, and Image.

A6:

To freeze a column, set the column's Frozen property to TRue. The column and all to its left remain visible during scrolling.


dgv.Columns[1].Frozen=true;


    Previous Section  < Day Day Up >  Next Section