BaseXsltDataWebPart.AddDataBinding Method

Adds the data binding information for a specified property on the Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overridable Sub AddDataBinding ( _
    op As String, _
    controlId As String, _
    propertyName As String, _
    eventName As String, _
    keyField As String, _
    keyValue As String, _
    dataField As String _
)
'Usage
Dim instance As BaseXsltDataWebPart
Dim op As String
Dim controlId As String
Dim propertyName As String
Dim eventName As String
Dim keyField As String
Dim keyValue As String
Dim dataField As String

instance.AddDataBinding(op, controlId, _
    propertyName, eventName, keyField, _
    keyValue, dataField)
public virtual void AddDataBinding(
    string op,
    string controlId,
    string propertyName,
    string eventName,
    string keyField,
    string keyValue,
    string dataField
)

Parameters

  • op
    Type: System.String

    The type of operation that is performed on the data binding.

  • propertyName
    Type: System.String

    The name of the property of the control being bound.

  • eventName
    Type: System.String

    The name of the event of the control being bound.

  • keyField
    Type: System.String

    The name of the key fields for this row of data, concatenated and comma-delimited.

  • keyValue
    Type: System.String

    The value of the key fields for this row of data, concatenated and comma-delimited.

  • dataField
    Type: System.String

    The name of the data field in the data source that is associated with the property.

Remarks

This virtual method must be overridden by the inherited Web Part to add the data binding information for its property.

See Also

Reference

BaseXsltDataWebPart Class

BaseXsltDataWebPart Members

Microsoft.SharePoint.WebPartPages Namespace