Returns the metatable object for the containing data control.
Public Shared Function FindMetaTable ( _
current As Control _
) As MetaTable
In Visual Basic and C#, you can call this method as an instance method on any object of type Control
. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic)
or Extension Methods (C# Programming Guide)
The following example shows how to find the MetaTable object for a control. In the example, the Dynamic Data page templates are copied to the \DynamicData\CustomPages\ProductDescriptions folder to provide a custom display for the ProductDescription table of the AdventureWorksLT database. The Insert.aspx file markup is changed to add an OnDataBound event handler named DetailsView1_DataBound, in which the FindMetaTable method is called to find the MetaTable object.
No code example is currently available or this language may not be supported.
Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.