Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
dataSrc
Collapse the table of content
Expand the table of content

dataSrc property

Sets or retrieves the source of the data for data binding.

Syntax

HRESULT value = object.put_dataSrc( v);HRESULT value = object.get_dataSrc(* p);

Property values

Type: BSTR

the identifier of the data source.

Remarks

The IHTMLDatabinding::dataFld property is not available on param objects; use IHTMLEventObj2::getAttribute instead.

Tabular and single-valued data consumers use the IHTMLDatabinding::dataSrc property to specify a binding. The property takes a string that corresponds to the unique identifier of a data source object (DSO) on the page. The string must be prefixed by a number sign (#).

When the IHTMLDatabinding::dataSrc property is applied to a tabular data consumer, the entire data set is repeated by the consuming elements.

When the IHTMLDatabinding::dataSrc property is applied to a table, any contained single-valued consumer objects that specify a IHTMLDatabinding::dataFld property are repeated for each record in the supplied data set. To complete the binding, the binding agent interrogates the enclosing table for its data source. A tabular data consumer contained within another tabular data consumer (table) must specify an explicit IHTMLDatabinding::dataSrc.

See also

Introduction to Data Binding

 

 

Community Additions

ADD
Show:
© 2015 Microsoft