GetRequiresData Method

The GetRequiresData method of the DataViewWebPart class overrides the Microsoft.SharePoint.WebPartPage.WebPart.CreateWebPartMenu method. It indicates whether this Web Part needs data during this round of communication.

Return Value

true registers this Web Part for the appropriate BeginDataRetrieval and EndDataRetrieval events.


The GetRequiresData method helps distinguish between a connection with another Web Part and a postback.


Platforms: Microsoft Windows 2003 Server

Security: Code Access Security