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:
public class ListViewVisualItemCreatingEventArgs : EventArgs
Inheritance: objectEventArgsListViewVisualItemCreatingEventArgs
Inherited Members
Constructors
Initializes the creation data for a visual item.
public ListViewVisualItemCreatingEventArgs(BaseListViewVisualItem visualItem, ListViewType viewType, ListViewDataItem dataItem)
The initial visual item.
viewTypeListViewTypeThe view type for which the visual item is being created.
dataItemListViewDataItemThe data item associated with the visual item.
Properties
Gets or sets the data item supplied when visual-item creation began.
public ListViewDataItem DataItem { get; set; }
Gets the view type for which the visual item is being created.
public ListViewType ListViewType { get; }
Gets or sets the visual item; the provider uses this value after the event returns.
public BaseListViewVisualItem VisualItem { get; set; }