New to Telerik UI for WinForms? Start a free 30-day trial

Supplies the initial visual item and view context during visual-item creation.

Assigning VisualItem replaces the item returned by the provider. Changing DataItem only changes the event data; the provider continues using the original data item.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ListViewVisualItemCreatingEventArgs : EventArgs

Inheritance: objectEventArgsListViewVisualItemCreatingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes the creation data for a visual item.

C#
public ListViewVisualItemCreatingEventArgs(BaseListViewVisualItem visualItem, ListViewType viewType, ListViewDataItem dataItem)
Parameters:visualItemBaseListViewVisualItem

The initial visual item.

viewTypeListViewType

The view type for which the visual item is being created.

dataItemListViewDataItem

The data item associated with the visual item.

Properties

Gets or sets the data item supplied when visual-item creation began.

C#
public ListViewDataItem DataItem { get; set; }

Gets the view type for which the visual item is being created.

C#
public ListViewType ListViewType { get; }

Gets or sets the visual item; the provider uses this value after the event returns.

C#
public BaseListViewVisualItem VisualItem { get; set; }