Export (0) Print
Expand All

ParameterCollectionEditor Class

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 system.design.dll)

public class ParameterCollectionEditor : UITypeEditor
public class ParameterCollectionEditor extends UITypeEditor
public class ParameterCollectionEditor extends UITypeEditor
Not applicable.

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. 
[Editor(typeof(System.Web.UI.Design.WebControls.
    ParameterCollectionEditor),
    typeof(UITypeEditor))]
public ParameterCollection SelectParameters
{
    get
    {
        // If there is no selectParams collection, create it.
        if (selectParams == null)
            selectParams = new ParameterCollection();

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

System.Object
   System.Drawing.Design.UITypeEditor
    System.Web.UI.Design.WebControls.ParameterCollectionEditor

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 Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft