ListView
From Visual WebGui Wiki
| This article will have a few sections added to it soon, based on the following article type skeleton: NewControlTemplate |
| This article missing it's contents and needs writing. Please help contributing to this wiki and add contents. |
Contents |
Overview
The ListView control is functionally equivialent to the Windows Forms ListView control.
Availability
The ListView is one of the Out of the Box standard controls, which means it is free and available in all Visual WebGui versions.
Relevant members
Events
| Name | Description |
|---|---|
| ColumnWidthChanging | Fires when width of a column is being changed |
| ColumnWidthChanged | Fires when width of a column has been changed |
| ItemFormatting | Fires before a cell is drawn in the ListView and used to change it's formatting. If UseItemStyleForSubItems = True the event fires only for the first item, otherwise it fires for all SubItems. |
Samples of use
- Simple filling of ListView with Checked
- DataBind ListView to a generic List of Type
- Dynamic ContextMenu on a ListView
- Data-centric Windows Forms to Web showcase - includes ListView enhanced demo usage
Version specifics
- 6.4 added events ColumnWidthChanging and ColumnWidthChanged
SDK Version highlights
- Programmatically adding columns to pre 6.4 version requires calling UpdateColumns()
- ListView.ItemFormatting() event added to version 6.4
- Any control as ListViewSubItem in version 6.4.0Beta1 and above
Rererences
Articles
Task tracker
- Ability to add any control as a ListViewSubitem
- Workaround for ListView.EnsureVisible - until it gets fixed
- Workaround for ListView with Gridlines around control type columns
Vidoes
Code samples
- ListViewItemSorter for strings, numbers and dates
- Hierarchial ListView - demonstrating the new version 6.4 enhancements in the ListView control
- DataCentric application implementing ListView custom paging
Forum discussons
- Getting the selected lines in multiselect ListView
- ListView sorting
- ListView sorting with an ListViewItemSorter class to handle integer sorting
- ListView sorting dates by modifying ListViewColumnSort
- Simulating mouseover in ListView
- Changing BackColor in ListView headers requires Themes
- Implementing custom paging in a ListView control
- Adding any control as a ListViewSubItem ("cell") in a ListView - 6.4.0Beta1 and above
- Reaching the cell's hosted Control of column type Control
- Implement custom paging in a ListView control
- Setting focus to a control within a ListView cell
- Saving ListView Column options, like width, sortorder, displayorder etc.
- Wrapper for using ListViewColumnOptions dialog on a subset of columns from the ListView
- Extension for the ListView control to resize according to contents
- Smart handling of DoubleClick, not requiring to click first, then DoubleClick
- Simple Drag and Drop for ListView members
- Determine the SubItem that was clicked on a Click event
- Simple customizaton of a ListView control adding more information to the paging area
Other references
