About Progress

  • Company
    • Company Overview
    • Leadership
    • Corporate Social Responsibility
    • Investor Relations
    • Press Releases
    • Press Coverage
    • Recognitions
    • Progress Labs
    • Events
    • Customers
    • Careers
    • Offices
  • Technology
    • Cloud Native App Dev Platform
    • Cognitive Services
    • Web Content Management
    • UI/UX Tools
    • Secure Data Connectivity and Integration
    • Secure Managed File Transfer
    • OpenEdge
    • Network Monitoring
  • Services
    • Consulting
    • Education
    • Modernization
    • Outsourcing
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • Conversational UI
    • Online Training
    • Document Processing Library
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for Xamarin NativeScript OSS framework
    Desktop
    UI for WPF UI for UWP UI for WinForms
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    Debugging
    FiddlerCore
    CMS
    Sitefinity
    UX Design
    Unite UX
    Document Management
    Telerik Document Processing
    Innovations Lab
    VR DataViz
    Free Tools
    Fiddler JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Edit Profile
    • Payment Profiles
    • Renewals & Upgrades
    • Support Tickets
    • Log out
  • Login
  • Contact Us
  • Try now

Class ListViewDataItem

Inheritance
System.Object
ListViewDataItem
DiagramListViewDataItem
ListViewDataItemGroup
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public class ListViewDataItem : IDataItem, INotifyPropertyChanged, INotifyPropertyChangingEx, IDisposable

Constructors

ListViewDataItem()

Declaration
public ListViewDataItem()

ListViewDataItem(Object)

Declaration
public ListViewDataItem(object value)
Parameters
System.Object value

ListViewDataItem(String)

Declaration
public ListViewDataItem(string text)
Parameters
System.String text

ListViewDataItem(String, String[])

Declaration
public ListViewDataItem(string text, string[] values)
Parameters
System.String text

System.String[] values

Fields

bitState

Declaration
protected BitVector32 bitState
Field Value
System.Collections.Specialized.BitVector32

IsCurrentState

Declaration
protected const int IsCurrentState = 16
Field Value
System.Int32

IsEnabledState

Declaration
protected const int IsEnabledState = 2
Field Value
System.Int32

IsLastInRowState

Declaration
protected const int IsLastInRowState = 8
Field Value
System.Int32

IsMeasureValidState

Declaration
protected const int IsMeasureValidState = 32
Field Value
System.Int32

IsSelectedState

Declaration
protected const int IsSelectedState = 1
Field Value
System.Int32

IsVisibleState

Declaration
protected const int IsVisibleState = 4
Field Value
System.Int32

MajorBitState

Declaration
protected const int MajorBitState = 32
Field Value
System.Int32

Properties

ActualSize

Declaration
public Size ActualSize { get; }
Property Value
System.Drawing.Size

BackColor

Gets or sets the backcolor of the list node. Color type represents an ARGB color.

Declaration
public Color BackColor { get; set; }
Property Value
System.Drawing.Color

See Also
GradientStyle
GradientStyle

BackColor2

Gets or sets the backcolor of the list item. This property is applicable to radial, glass, office glass, gel, and vista gradients.

Declaration
public Color BackColor2 { get; set; }
Property Value
System.Drawing.Color

See Also
GradientStyle
GradientStyle

BackColor3

Gets or sets the backcolor of the list item. This property is applicable to radial, glass, office glass, and vista gradients.

Declaration
public Color BackColor3 { get; set; }
Property Value
System.Drawing.Color

See Also
GradientStyle
GradientStyle

BackColor4

Gets or sets the backcolor of the list item. This property is applicable to radial, glass, office glass, and vista gradients.

Declaration
public Color BackColor4 { get; set; }
Property Value
System.Drawing.Color

See Also
GradientStyle
GradientStyle

BorderColor

Gets or sets the border color of the list item.

Declaration
public Color BorderColor { get; set; }
Property Value
System.Drawing.Color

CheckState

Gets a value that indicating the current check state of the item.

Declaration
public virtual ToggleState CheckState { get; set; }
Property Value
ToggleState

Current

Gets or sets a value that indicates if this item is current.

Declaration
public bool Current { get; }
Property Value
System.Boolean

DataBoundItem

Declaration
public object DataBoundItem { get; set; }
Property Value
System.Object

Implements
IDataItem.DataBoundItem

Enabled

Declaration
[RadPropertyDefaultValue("Enabled", typeof(RadElement))]
public bool Enabled { get; set; }
Property Value
System.Boolean

FieldCount

Declaration
public int FieldCount { get; }
Property Value
System.Int32

Implements
IDataItem.FieldCount

Font

Declaration
public Font Font { get; set; }
Property Value
System.Drawing.Font

ForeColor

Declaration
public Color ForeColor { get; set; }
Property Value
System.Drawing.Color

GradientAngle

Gets or sets gradient angle for linear gradient.

Declaration
public float GradientAngle { get; set; }
Property Value
System.Single

The default value is 90.0.

See Also
GradientStyle
GradientPercentage
GradientPercentage2
NumberOfColors

GradientPercentage

Gets or sets GradientPercentage for linear, glass, office glass, gel, vista, and radial gradients.

Declaration
public float GradientPercentage { get; set; }
Property Value
System.Single

The default value is 0.5.

See Also
GradientStyle
GradientPercentage2
GradientAngle
NumberOfColors

GradientPercentage2

Gets or sets GradientPercentage for office glass, vista, and radial gradients.

Declaration
public float GradientPercentage2 { get; set; }
Property Value
System.Single

The default value is 0.5.

See Also
GradientStyle
GradientPercentage
GradientAngle
NumberOfColors

GradientStyle

Gets and sets the gradient style. The possible values are defined in the gradient style enumeration: solid, linear, radial, glass, office glass, gel, and vista.

Declaration
public GradientStyles GradientStyle { get; set; }
Property Value
GradientStyles

The default value is GradientStyles.

See Also
GradientStyles
GradientPercentage
GradientPercentage2
GradientAngle
NumberOfColors

Group

Declaration
public virtual ListViewDataItemGroup Group { get; set; }
Property Value
ListViewDataItemGroup

HasStyle

Gets a value indicating whether this instance has style.

Declaration
public bool HasStyle { get; }
Property Value
System.Boolean

true if this instance has style; otherwise, false.

Image

Declaration
public Image Image { get; set; }
Property Value
System.Drawing.Image

ImageAlignment

Declaration
public ContentAlignment ImageAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment

ImageIndex

Gets or sets the left image list index value of the image displayed.

Declaration
public virtual int ImageIndex { get; set; }
Property Value
System.Int32

See Also
Image
ImageKey

ImageKey

Gets or sets the key for the left image associated with this list view item.

Declaration
public string ImageKey { get; set; }
Property Value
System.String

See Also
Image
ImageIndex

IsDataBound

Declaration
public virtual bool IsDataBound { get; }
Property Value
System.Boolean

Item[Int32]

Declaration
public object this[int index] { get; set; }
Parameters
System.Int32 index

Property Value
System.Object

Implements
IDataItem.Item[Int32]

Item[String]

Declaration
public object this[string name] { get; set; }
Parameters
System.String name

Property Value
System.Object

Implements
IDataItem.Item[String]

Item[ListViewDetailColumn]

Declaration
public object this[ListViewDetailColumn column] { get; set; }
Parameters
ListViewDetailColumn column

Property Value
System.Object

Key

Key object that is used by the FindByKey method of RadListView. By default this property holds a reference to the ListViewDataItem.

Declaration
public object Key { get; set; }
Property Value
System.Object

ListView

Declaration
public RadListView ListView { get; }
Property Value
RadListView

NumberOfColors

Gets or sets the number of used colors in the gradient effect.

Declaration
public int NumberOfColors { get; set; }
Property Value
System.Int32

The default value is 4.

See Also
BackColor
BackColor2
BackColor3
BackColor4
GradientStyle

Owner

Declaration
public RadListViewElement Owner { get; }
Property Value
RadListViewElement

Selected

Gets a value that indicates if this item is selected.

Declaration
public virtual bool Selected { get; }
Property Value
System.Boolean

Size

Declaration
public Size Size { get; set; }
Property Value
System.Drawing.Size

SubItems

This collection is used for adding items at design time. It should not be used in runtime.

Declaration
public virtual ListViewSubDataItemCollection SubItems { get; }
Property Value
ListViewSubDataItemCollection

Tag

Declaration
public object Tag { get; set; }
Property Value
System.Object

Text

Gets or sets the text.

Declaration
public virtual string Text { get; set; }
Property Value
System.String

The text.

TextAlignment

Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment

TextImageRelation

Declaration
public TextImageRelation TextImageRelation { get; set; }
Property Value
System.Windows.Forms.TextImageRelation

Value

Gets or sets a value for the property indicated by ValueMember if in bound mode, and private value in unbound mode. Trying to explicitly set this property in bound mode will result in an InvalidOperationException.

Declaration
public virtual object Value { get; set; }
Property Value
System.Object

Visible

Gets a value that indicates if this item is currently visible.

Declaration
public bool Visible { get; set; }
Property Value
System.Boolean

Methods

Dispose()

Declaration
public virtual void Dispose()
Implements
System.IDisposable.Dispose()

FormatToggleStateDataSourceValue(Object)

Declaration
protected virtual ToggleState FormatToggleStateDataSourceValue(object value)
Parameters
System.Object value

Returns
ToggleState

FormatToggleStateValue(ToggleState, PropertyDescriptor)

Declaration
protected virtual object FormatToggleStateValue(ToggleState value, PropertyDescriptor targetField)
Parameters
ToggleState value

System.ComponentModel.PropertyDescriptor targetField

Returns
System.Object

GetBoundCheckedValue()

Declaration
protected ToggleState GetBoundCheckedValue()
Returns
ToggleState

GetBoundValue()

Declaration
protected virtual object GetBoundValue()
Returns
System.Object

GetDisplayValue()

Declaration
protected object GetDisplayValue()
Returns
System.Object

GetFormattedValue(Object)

Declaration
protected virtual string GetFormattedValue(object value)
Parameters
System.Object value

Returns
System.String

GetUnboundValue()

Gets a value for the Value property in unbound mode.

Declaration
protected virtual object GetUnboundValue()
Returns
System.Object

Returns an object reference pointing to the value of the Value property in unbound mode.

GetValue(String)

Declaration
protected object GetValue(string propertyName)
Parameters
System.String propertyName

Returns
System.Object

IndexOf(String)

Declaration
public int IndexOf(string name)
Parameters
System.String name

Returns
System.Int32

Implements
IDataItem.IndexOf(String)

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)
Parameters
System.ComponentModel.PropertyChangedEventArgs args

OnNotifyPropertyChanged(String)

Declaration
protected void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String propertyName

OnNotifyPropertyChanging(String)

Declaration
protected bool OnNotifyPropertyChanging(string propertyName)
Parameters
System.String propertyName

Returns
System.Boolean

OnNotifyPropertyChanging(PropertyChangingEventArgsEx)

Declaration
protected virtual bool OnNotifyPropertyChanging(PropertyChangingEventArgsEx args)
Parameters
PropertyChangingEventArgsEx args

Returns
System.Boolean

SetBoundValue(Object)

Declaration
protected virtual void SetBoundValue(object value)
Parameters
System.Object value

SetDataBoundItem(Boolean, Object)

Declaration
protected virtual void SetDataBoundItem(bool dataBinding, object value)
Parameters
System.Boolean dataBinding

System.Object value

SetUnboundValue(Object)

This method is called when setting the Value property of a RadListDataItem when it is in unbound mode.

Declaration
protected virtual void SetUnboundValue(object value)
Parameters
System.Object value

The value to set the Value property to.

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

PropertyChanging

Declaration
public event PropertyChangingEventHandlerEx PropertyChanging
Event Type
PropertyChangingEventHandlerEx

Implements
INotifyPropertyChangingEx.PropertyChanging

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

 / 
Tell us how we can improve this article
Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.