PRB: DataGrid Web Server Control Does Not Appear When You Put It in a MultiPage Internet Explorer Web Controls Control (815185)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
SYMPTOMSWhen you put a DataGrid Web server control in a MultiPage Microsoft Internet
Explorer Web Controls control through code, the DataGrid does not appear in the Web Form in Design view. The DataGrid also does not appear when you view the Web Form in the browser.CAUSEThis problem occurs because the DataGrid is not bound to any data.
Typically, when a DataGrid control is at the top level of the code, the Designer object instantiates. This behavior creates a dummy data source
for the DataGrid, and then the DataGrid appears as expected.
However, when the DataGrid control is located in another
control (the MultiPage control in this example), the DataGrid control does not go through the
design-time code path that it would have gone through typically. Therefore, the DataGrid does not appear in the browser because the DataGrid has not been bound to any
data. In this scenario, the DataGrid also does not appear in Design view at design time.STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft Web
sites:
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
328046
INFO: Microsoft Internet Explorer Web Controls Are Not
Supported
Modification Type: | Major | Last Reviewed: | 4/21/2006 |
---|
Keywords: | kbWebClasses kbWebBrowser kbCodeGen kbWebForms kbControl kbprb KB815185 kbAudDeveloper |
---|
|