ParameterCollectionEditor Class

Note: This class is new in the .NET Framework version 2.0.

Provides a component editor for the ParameterCollection object that is specified by the Parameters properties of the associated data source control.

Namespace: System.Web.UI.Design.WebControls
Assembly: System.Design (in

public class ParameterCollectionEditor : UITypeEditor
public class ParameterCollectionEditor extends UITypeEditor
public class ParameterCollectionEditor extends UITypeEditor

The ParameterCollectionEditor class provides a user interface for editing the Parameter elements of the ParameterCollection object at design time, as specified by one of the Parameters properties. The Parameters properties include the DeleteParameters, FilterParameters, InsertParameters, SelectParameters and UpdateParameters properties of the ObjectDataSource, SqlDataSource, and other data source controls.

The ParameterCollectionEditor is invoked by selecting the ellipsis () button on one of the Parameters properties in the Properties grid of the visual designer.

The EditValue method edits the Parameter elements of the ParameterCollection for the associated data source control. The GetEditStyle method gets the editing style that is associated with this editor.

The following code example shows how to use the EditorAttribute attribute to associate the ParameterCollectionEditor and UITypeEditor (the collection editor base class) classes with a SelectParameters property in a custom control.

private ParameterCollection selectParams;

// Associate the ParameterCollectionEditor with the SelectParameters. 
public ParameterCollection SelectParameters
        // If there is no selectParams collection, create it.
        if (selectParams == null)
            selectParams = new ParameterCollection();

        return selectParams;
    set { selectParams = value; }
} // SelectParameters


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0