18.01.2013 Views

Mastering Visual Basic .NET

Mastering Visual Basic .NET

Mastering Visual Basic .NET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Arrange property determines how the items will be arranged on the control, and its possible<br />

settings are show in Table 16.2.<br />

Table 16.2: Settings of the Arrange Property<br />

Setting Description<br />

Default When an item is moved on the control, it remains where it is dropped.<br />

Left Items are aligned to the left side of the control.<br />

SnapToGrid Items are aligned to an invisible grid on the control. When the user moves an item, the item<br />

moves to the closest grid point on the control.<br />

Top Items are aligned to the top of the control.<br />

HeaderStyle This property determines the style of the headers in Report view. It has no meaning<br />

when the View property is set to something else, because only the Report view has columns.<br />

The possible settings for the HeaderStyle property are shown in Table 16.3.<br />

Table 16.3: Settings of the HeaderStyle Property<br />

Setting Description<br />

Clickable Visible column header that responds to clicking<br />

Nonclickable Visible column header that does not respond to clicking<br />

None No visible column header<br />

AllowColumnReorder This property is a True/False value that determines whether the user<br />

can reorder the columns at runtime. If this property is set to True, then the user can move a column<br />

to a new location by dragging its header with the mouse and dropping it in the place of<br />

another column. This property is also meaningful only in Report view.<br />

Activation This property specifies the action that will activate an item on the control, and it<br />

can have one of the values shown in Table 16.4.<br />

Table 16.4: Settings of the Activation Property<br />

Setting Description<br />

OneClick Items are activated with a single click. When the cursor is over an item, it changes shape and<br />

the color of the item’s text changes.<br />

Standard Items are activated with a double-click. No change in the selected item’s text color takes<br />

place.<br />

TwoClick Items are activated with a double-click and their text changes color as well.<br />

THE LISTVIEW CONTROL<br />

769

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!