Version

FindControl Method (GridFieldCaption)

This method searches for a locates control objects within the TemplateContainer associated with this UIObject by using the Id parameter to match against control Ids.
Syntax
'Declaration
 
Public Overrides Function FindControl( _
   ByVal id As String _
) As Control
public override Control FindControl( 
   string id
)

Parameters

id
The string Id value for the control to be located.

Return Value

If a control is located within the TemplateContainer of this UIObject that matches the passed in Id, the control reference is returned. Otherwise null is returned.
Remarks
The TemplateContainer is tagged with the INamingContainer interface. So the Id passed to this method must match the Id of a control within that NamingContainer.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also