MobileForms Toolkit Documentation

AdvancedList Class

Resco AdvancedList Control

For a list of all members of this type, see AdvancedList Members.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ScrollableControl
               System.Windows.Forms.ContainerControl
                  System.Windows.Forms.UserControl
                     Resco.Controls.AdvancedList.AdvancedList

public class AdvancedList : UserControl

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Resco AdvancedList control enables you to display a list of rows to the user that the user can select or deselect by clicking. This behavior is controled by the SelectionMode property. An AdvancedList control can provide single or multiple selections using the MultiSelect property. You can handle the RowSelect event to do some additional processing when the row is selected or deselected. You can also set the SelectedRow or get the array of the SelectedRows. Or you can just use the EnsureVisible function, to scroll the control to desired row.

The AdvancedList displays each Row in the DataRows collection with defined RowTemplate which depends on whether the Row is selected or not. All the templates are stored in the Templates collection and provides rich user interface experience, using various types of Cells to display data. You can handle the CellClick event to give response when the user clicked the cell. Or you can use the LinkCell and handle the LinkClick event for similar user experience.

The control can also display HeaderRow which is not scrolled away, if the ShowHeader property is set to true. With the GridLines and GridColor properties you can control, you can control if there the gridlines between rows are displayed and their color. The overall look of control can be tuned with the Border and BackColor properties.

You can use the built-in DbConnector to easily load the data from SqlCe or other database, or you can provide your own DataConnector. When adding the data rows, you can handle the ValidateData event for more customization. When manualy loading the data or doing more operations with the AdvancedList it is recomended to use the BeginInit and EndInit methods.

The control is specially designed for Compact Framework and optimized for designing in visual designer. For an examples of usage see the Samples.

Notes to Inheritors:    During the further developement of the AdvancedList control non-public properties and methods can be a subject to change. It is not recomended to inherit from this class.

Requirements

Namespace: Resco.Controls.AdvancedList

Assembly: Resco.AdvancedList.CF3 (in Resco.AdvancedList.CF3.dll)

See Also

AdvancedList Members | Resco.Controls.AdvancedList Namespace | Samples | RowTemplate