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.StringThe type of operation that is performed on the data binding.
controlId
Type: System.StringThe ID of the Web Part.
propertyName
Type: System.StringThe name of the property of the control being bound.
eventName
Type: System.StringThe name of the event of the control being bound.
keyField
Type: System.StringThe name of the key fields for this row of data, concatenated and comma-delimited.
keyValue
Type: System.StringThe value of the key fields for this row of data, concatenated and comma-delimited.
dataField
Type: System.StringThe 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.