System.windows.forms.listview databinding


















You can bind to both traditional data sources as well as almost any structure that contains data. The interface communicates to a bound control the property changes on a business object. How to: Ensure the Selected Row in a Child Table Remains at the Correct Position Shows how to ensure the selected row of a child table does not change, when a change is made to a field of the parent table.

Binding Describes the class that represents the binding between a bindable component and a data source. BindingSource Describes the class that encapsulates a data source for binding to controls. BindingSource Component Contains a list of topics that demonstrate how to use the BindingSource component.

DataGridView Control Provides a list of topics that demonstrate how to use a bindable datagrid control. Arranges items in the control when they are displayed as icons with a specified alignment setting. Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on. Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on.

Prevents the control from drawing until the EndUpdate method is called. Creates a new instance of the accessibility object for the ListView control. Forces the creation of the visible control, including the creation of the handle and any visible child controls. Creates the Graphics for the control. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

Releases all resources used by the Component. Releases the unmanaged resources used by the ListView and optionally releases the managed resources. Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. Resumes drawing of the list view control after drawing is suspended by the BeginUpdate method. Ensures that the specified item is visible within the control, scrolling the contents of the control if necessary.

Finds the first ListViewItem that begins with the specified text value. ListViewSubItem , if indicated, that begins with the specified text value. The search starts at the specified index. Retrieves the specified AccessibleObject. Retrieves a value indicating how a control will behave when its AutoSize property is enabled. Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.

Returns the next ContainerControl up the control's chain of parent controls. Retrieves the specified portion of the bounding rectangle for a specific item within the list view control.

Retrieves the current lifetime service object that controls the lifetime policy for this instance. Returns an object that represents a service provided by the Component or by its Container. Gets the Type of the current instance. Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. Invalidates the specified region of the control adds it to the control's update region, which is the area that will be repainted at the next paint operation , and causes a paint message to be sent to the control.

Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.

Raises the GotFocus event for the specified control. Raises the LostFocus event for the specified control. Raises the Click event for the specified control. Raises the Paint event for the specified control. Raises the PaintBackground event for the specified control. Determines whether the specified key is a regular input key or a special key that requires preprocessing.

Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height. Creates a shallow copy of the current Object.

Creates a shallow copy of the current MarshalByRefObject object. Raises the Invalidated event with a specified region of the control to invalidate.

Raises the AfterLabelEdit event. Raises the AutoSizeChanged event. Raises the BackColorChanged event. Raises the BackgroundImageChanged event. Raises the BackgroundImageLayoutChanged event.

Raises the BeforeLabelEdit event. Raises the BindingContextChanged event. Raises the CacheVirtualItems event. Raises the CausesValidationChanged event. Raises the ChangeUICues event. Raises the Click event. Raises the ClientSizeChanged event.

Raises the ColumnClick event. Raises the ColumnReordered event. Raises the ColumnWidthChanged event. Raises the ColumnWidthChanging event. Raises the ContextMenuChanged event. Raises the ContextMenuStripChanged event. Raises the ControlAdded event. Raises the ControlRemoved event. Raises the CreateControl method.

Raises the CursorChanged event. Raises the DockChanged event. Raises the DoubleClick event. Raises the DpiChangedAfterParent event. Raises the DpiChangedBeforeParent event.

Raises the DragDrop event. Raises the DragEnter event. Raises the DragLeave event. Raises the DragOver event. Raises the DrawColumnHeader event. Raises the DrawItem event. Raises the DrawSubItem event. Raises the EnabledChanged event. Raises the Enter event. Raises the ForeColorChanged event. Raises the GiveFeedback event. Raises the GotFocus event. Fires the GroupCollapsedStateChanged event. Fires the GroupTaskLinkClick event. Raises the HandleCreated event. Raises the HandleDestroyed event.

Raises the HelpRequested event. Raises the ImeModeChanged event. Raises the Invalidated event. Raises the ItemActivate event. Raises the ItemCheck event. Raises the ItemChecked event. Raises the ItemDrag event. Raises the ItemMouseHover event. Raises the ItemSelectionChanged event.

Raises the KeyDown event. Raises the KeyPress event. Raises the KeyUp event. Raises the Layout event. Raises the Leave event. Raises the LocationChanged event. Raises the LostFocus event. Raises the MarginChanged event. Raises the MouseCaptureChanged event. Raises the MouseClick event. Raises the MouseDoubleClick event. Raises the MouseDown event. Raises the MouseEnter event.

Raises the MouseHover event. Raises the MouseLeave event. Raises the MouseMove event. Raises the MouseUp event. Raises the MouseWheel event. Raises the Move event. Raises the PaddingChanged event. Raises the Paint event. Raises the BackColorChanged event when the BackColor property value of the control's container changes.

Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes. Raises the BindingContextChanged event when the BindingContext property value of the control's container changes.

Raises the ParentChanged event. Raises the EnabledChanged event when the Enabled property value of the control's container changes. Raises the FontChanged event when the Font property value of the control's container changes.

Raises the ForeColorChanged event when the ForeColor property value of the control's container changes. Raises the VisibleChanged event when the Visible property value of the control's container changes. Raises the PreviewKeyDown event. Raises the QueryContinueDrag event. Raises the RegionChanged event. Raises the Resize event. Raises the RetrieveVirtualItem event. Raises the RightToLeftChanged event.

Raises the SearchForVirtualItem event. Raises the SelectedIndexChanged event. Raises the SizeChanged event. Raises the StyleChanged event. Raises the SystemColorsChanged event. Raises the TabIndexChanged event. Raises the TabStopChanged event. Raises the TextChanged event.

Raises the Validated event. Raises the Validating event. Raises the VisibleChanged event. Initializes the properties of the ListView control that manage the appearance of the control.

Forces a range of ListViewItem objects to be redrawn. Forces the control to invalidate its client area and immediately redraw itself and any child controls.

Resets the BackColor property to its default value. Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. Resets the Cursor property to its default value. Resets the Font property to its default value. Resets the ForeColor property to its default value.

Resets the ImeMode property to its default value. Resets the control to handle the MouseLeave event. Resets the RightToLeft property to its default value. Resets the Text property to its default value Empty. Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. Activates a child control. Optionally specifies the direction in the tab order to select the control from.

Sets a value indicating how a control will behave when its AutoSize property is enabled. Sets a specified ControlStyles flag to either true or false. Returns a string representation of the ListView control. Overrides WndProc Message.

Occurs when the value of the BackColor property changes. Occurs when the value of the BackgroundImage property changes. Occurs when the BackgroundImageLayout property changes. Occurs when the value of the BindingContext property changes. Occurs when the contents of the display area for a ListView in virtual mode has changed, and the ListView determines that a new range of items is needed. Occurs when the value of the CausesValidation property changes. Occurs when the value of the ClientSize property changes.

Occurs when the value of the ContextMenu property changes. Occurs when the value of the ContextMenuStrip property changes. Occurs when a new control is added to the Control. Occurs when a control is removed from the Control. Occurs when the value of the Cursor property changes. Occurs when the component is disposed by a call to the Dispose method.

Occurs when the value of the Dock property changes. Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed. Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred.

Occurs when the details view of a ListView is drawn and the OwnerDraw property is set to true. Occurs when a ListView is drawn and the OwnerDraw property is set to true. Occurs when the Enabled property value has changed. Occurs when the Font property value changes. Occurs when the ForeColor property value changes.

Occurs when the ImeMode property has changed. Occurs when the Location property value has changed. Occurs when the value of the Padding property changes.

Occurs when the ListView control is painted. Occurs when the Parent property value changes. Occurs before the KeyDown event when a key is pressed while focus is on this control. Occurs when AccessibleObject is providing help to accessibility applications. Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. Occurs when the value of the Region property changes. Occurs when the RightToLeft property value changes.

Occurs when the value of the RightToLeftLayout property changes. Occurs when the ListView is in virtual mode and a search is taking place. Occurs when the SelectedIndices collection changes. Occurs when the Size property value changes. Occurs when the TabIndex property value changes.

Occurs when the TabStop property value changes. Occurs when the Text property changes. Occurs when a ListView is in virtual mode and the selection state of a range of items has changed. Occurs when the Visible property value changes. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. List View Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback?

Namespace: System. Forms Assembly: System. Note Setting the Cursor property for a ListView control has no affect on the appearance of the cursor in. In this article. Alignment property. SmallIcon or LargeIcon. AutoArrange property. AutoResizeColumn method. Columns property. Details or Tile. DrawSubItem event. FindItemWithText method. Responds to a list box selection change by raising a SelectionChanged event. Invoked when an unhandled StylusButtonDown attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled StylusButtonUp attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusEnter attached event is raised by this element. Invoked when an unhandled StylusInAirMove attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled StylusInRange attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusLeave attached event is raised by this element. Invoked when an unhandled StylusMove attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled StylusOutOfRange attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class.

Invoked when the TextInput event is received. Invoked whenever an unhandled ToolTipClosing routed event reaches this class in its route. Invoked whenever the ToolTipOpening routed event reaches this class in its route. Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element. Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement.

Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element. Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element. Called when the VisualCollection of the visual object is modified. Invoked when the parent of this element in the visual tree is changed.

Supports incremental layout implementations in specialized subclasses of FrameworkElement. ParentLayoutInvalidated UIElement is invoked when a child element has invalidated a property that is marked in metadata as affecting the parent's measure or arrange passes during layout.

Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual. Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates. Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus. Sets the styles, templates, and bindings for a ListViewItem.

Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided as the RoutedEvent property of that event data. Provides an accessor that simplifies access to the NameScope registration method. Removes the provided object from this element's logical tree. FrameworkElement updates the affected logical tree parent pointers to keep in sync with this deletion.

Selects all the items in a ListBox. Attaches a binding to this element, based on the provided source property name as a path qualification to the data source. Searches for a resource with the specified name and sets up a resource reference to it for the specified property.

Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. Returns a value that indicates whether to apply the style from the ItemContainerStyle or ItemContainerStyleSelector property to the container element of the specified item. Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.

Returns a value that indicates whether serialization processes should serialize the effective value of the GroupStyle property. Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class. Returns a value that indicates whether serialization processes should serialize the effective value of the Items property. Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

Returns whether serialization processes should serialize the contents of the Resources property. Returns whether serialization processes should serialize the contents of the Style property. Returns whether serialization processes should serialize the contents of the Triggers property. Provides a string representation of the ItemsControl object. Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object.

Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.

Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. Returns a transform that can be used to transform coordinates from the Visual to the specified visual object. Translates a point relative to this element to coordinates that are relative to the specified element. Simplifies access to the NameScope de-registration method. Clears all the selection in a ListBox.

Reapplies the default style to the current FrameworkElement. Enforces that the calling thread has access to this DispatcherObject.

Occurs when the input system reports an underlying drag event with this element as the drag target. Occurs when the input system reports an underlying drag event with this element as the drag origin.

Occurs when the input system reports an underlying drag event with this element as the potential drop target. Occurs when the input system reports an underlying drop event with this element as the drop target. Occurs when the value of the Focusable property changes. Occurs when the input system reports an underlying drag-and-drop event that involves this element.

Occurs when this FrameworkElement is initialized. This event coincides with cases where the value of the IsInitialized property changes from false or undefined to true. Occurs when the value of the IsEnabled property on this element changes. Occurs when the value of the IsHitTestVisible dependency property changes on this element.

Occurs when the value of the IsKeyboardFocused property changes on this element. Occurs when the value of the IsKeyboardFocusWithin property changes on this element. Occurs when the value of the IsMouseCaptured property changes on this element. Occurs when the value of the IsMouseDirectlyOver property changes on this element.

Occurs when the value of the IsStylusCaptured property changes on this element. Occurs when the value of the IsStylusCaptureWithin property changes on this element. Occurs when the value of the IsStylusDirectlyOver property changes on this element. Occurs when the value of the IsVisible property changes on this element. Occurs when the layout of the various visual elements associated with the current Dispatcher changes.

Occurs when a manipulation and inertia on the UIElement object is complete. Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.

Occurs when an input device begins a manipulation on the UIElement object. Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

Occurs when the stylus moves while over the element. The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead. Occurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position.

Occurs when BringIntoView Rect is called on this element. Occurs when the selection of a Selector changes. Occurs when either the ActualHeight or the ActualWidth properties change value on this element.

Occurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead. This member supports the Windows Presentation Foundation WPF infrastructure and is not intended to be used directly from your code. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. List View Class Reference Is this page helpful?

Please rate your experience Yes No. Any additional feedback? Namespace: System. Controls Assembly: PresentationFramework. Represents a control that displays a list of data items. Note Setting a visual property only has an effect if that property is both present in the control's default template and is set by using a TemplateBinding. In this article. Gets the rendered height of this element. Inherited from FrameworkElement.

Gets the rendered width of this element. Inherited from UIElement. Inherited from ItemsControl. Inherited from ListBox. Gets a value that indicates whether at least one touch is captured to this element. Gets a value that indicates whether at least one touch is pressed over this element. Gets or sets a brush that describes the background of a control.

Inherited from Control. Gets or sets a brush that describes the border background of a control. Gets or sets the border thickness of a control.

Gets or sets the cursor that displays when the mouse pointer is over this element. Gets or sets the data context for an element when it participates in data binding. Inherited from DependencyObject. Gets the size that this element computed during the measure pass of the layout process.

Inherited from DispatcherObject. Gets or sets the font family of the control. Gets or sets the font size. Gets or sets the degree to which a font is condensed or expanded on the screen.

Gets or sets the font style. Gets or sets the weight or thickness of the specified font. Gets or sets a brush that describes the foreground color. Gets a value indicating whether this element has any animated properties.

Gets or sets the suggested height of the element. Gets or sets the horizontal alignment of the control's content. Gets the collection of input bindings associated with this element.

Gets a value that indicates whether the control is using grouping. Gets a value indicating whether this element has keyboard focus. Gets a value that indicates whether this element has been loaded for presentation. Gets a value indicating whether the current size returned by layout measure is valid.

Gets a value that indicates whether this instance is currently sealed read-only. Inherited from Selector. Gets or sets a value that indicates whether a control is included in tab navigation. Gets or sets a value that indicates whether case is a condition when searching for items.

Gets or sets the template that defines the panel that controls the layout of items. Gets or sets the custom logic for choosing a template used to display each item.

Gets or sets the outer margin of an element. Gets or sets the maximum height constraint of the element. Gets or sets the maximum width constraint of the element. Gets or sets the minimum height constraint of the element. Gets or sets the minimum width constraint of the element. Gets or sets the padding inside a control. Gets the logical parent element of this element. Gets a value that uniquely identifies this element.

Gets or sets the final render size of this element. Gets or sets the locally-defined resource dictionary. Gets or sets the first item in the current selection or returns null if the selection is empty.

Gets the currently selected items. Gets or sets the style used by this element when it is rendered. Gets a collection of all stylus plug-in customization objects associated with this element. Gets or sets a control template. Gets or sets the tool-tip object that is displayed for this element in the user interface UI. Gets all touch devices that are captured to this element.

Gets all touch devices that are over this element. Gets all touch devices that are over this element or any child elements in its visual tree. Gets the collection of triggers established directly on this element, or in child elements. Gets or sets the vertical alignment of the control's content. Gets or sets the user interface UI visibility of this element. Inherited from Visual. Gets the number of visual child elements within this element.

Gets or sets the offset value of the visual object. Gets the visual tree parent of the visual object. Gets or sets the x-coordinate vertical guideline collection. Gets or sets the y-coordinate horizontal guideline collection. Gets or sets the width of the element. AddChild Object. AddHandler RoutedEvent, Delegate. AddLogicalChild Object. Adds the provided object to the logical tree of this element. AddText String. AddVisualChild Visual.

Defines the parent-child relationship between two visuals. Arrange Rect. ArrangeCore Rect. ArrangeOverride Size. Starts an animation for a specified animated property on this element. BeginStoryboard Storyboard.

Begins the sequence of actions that are contained in the provided storyboard. BeginStoryboard Storyboard, HandoffBehavior. Attempts to bring this element into view, within any scrollable regions it is contained within. BringIntoView Rect. Attempts to force capture of the mouse to this element. Attempts to force capture of the stylus to this element. CaptureTouch TouchDevice. Attempts to force capture of a touch to this element. ClearValue DependencyProperty.

ClearValue DependencyPropertyKey. CoerceValue DependencyProperty. ContainerFromElement DependencyObject. Equals Object. Returns the common ancestor of two visual objects. FindName String. Finds an element that has the provided identifier name. FindResource Object.



0コメント

  • 1000 / 1000