Class DataListView
DataListView extends the ListView class to provide DataBinding support.
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class DataListView : ListView
Remarks
The DataListView creates appropriate columns to reflect the columns in the DataSource and populates them.
Constructors
DataListView()
Initializes a new instance of the DataListView class.
Declaration
public DataListView()
Properties
CreateParams
Declaration
protected override CreateParams CreateParams { get; }
Property Value
Type |
---|
System.Windows.Forms.CreateParams |
DataSource
Gets or sets the data source that the ListView is displaying data for.
Declaration
public object DataSource { get; set; }
Property Value
Type |
---|
System.Object |
ImageColumnIndex
Gets or sets the index of the image column.
Declaration
public int ImageColumnIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
ImageFromOwner
Gets or sets a value indicating whether the image field will be provided by the Owner object.
Declaration
public bool ImageFromOwner { get; set; }
Property Value
Type |
---|
System.Boolean |
ListOwner
Gets or sets the owner object that will provide formatting information.
Declaration
public IDataListViewOwner ListOwner { get; set; }
Property Value
Type |
---|
IDataListViewOwner |
Mirrored
Declaration
public bool Mirrored { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
AdjustHeight(Int32)
Sets the control Height based on the item count subject to a maximum height.
Declaration
public virtual void AdjustHeight(int maxHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxHeight | The maximum height. |
Dispose(Boolean)
Cleans up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Bool disposing |
GetAdjustedMaxHeight(Int32)
Declaration
protected virtual int GetAdjustedMaxHeight(int actualMaxHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | actualMaxHeight |
Returns
Type |
---|
System.Int32 |
OnDataSourceChanged(Object, Object)
Declaration
protected virtual void OnDataSourceChanged(object oldDataSource, object newDataSource)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldDataSource | |
System.Object | newDataSource |
OnResize(EventArgs)
Overrides Control.OnResize.
Declaration
protected override void OnResize(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The event data. |
PopulateList()
Populates the ListView based on the columns in the DataSource.
Declaration
public virtual void PopulateList()
ResizeListColumns(Int32)
Resizes the columns.
Declaration
public virtual void ResizeListColumns(int totalWidth)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | totalWidth | The new total width. |
SetColumns()
Sets the columns based on the DataSource.
Declaration
public void SetColumns()
SetData()
Sets the data for the ListView from the DataSource.
Declaration
public void SetData()