Collapse the table of content
Expand the table of content

dataFormatAs property

Sets or retrieves the rendering format for the data supplied to the object.


HRESULT value = object.put_dataFormatAs( v);HRESULT value = object.get_dataFormatAs(* p);

Property values

Type: BSTR


Default. Data is rendered as text.


Data is rendered as HTML.


Internet Explorer 5.01 and later versions. Data is rendered using the locale settings of the client machine.


As of Windows Internet Explorer 7, the IHTMLDatabinding::dataFormatAs attribute is no longer supported for the input type=button object.

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

Internet Explorer 5.01 or later honors the regional settings for the user's control panel when the IHTMLDatabinding::dataFormatAs attribute is set to localized-text. Internet Explorer 5.01 or later performs a locale-dependent type conversion on the native value, instead of using the data source object to perform the conversion, when binding a textual element such as a span, div, or input to date, currency, or numeric data. Microsoft Internet Explorer 5 does not provide this feature. To compensate for this limitation, a data source object can implement ISimpleDataConverter to participate in the conversion. Neither of these features is supported in earlier versions of Windows Internet Explorer.

See also

Introduction to Data Binding



Community Additions

© 2015 Microsoft