PRB: DataGrid Shows Default Column Header Names in Design Mode (314110)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- 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
This article was previously published under Q314110 SYMPTOMS
When you use the DataGrid control at design time, the column header names default to "Column1," "Column2," and so on. This occurs even though the code-behind window contains code that connects the DataGrid to data that has known column header names.
NOTE: Design time refers to viewing the Web Form designer window in the Microsoft Visual Studio .NET integrated development environment (IDE). Run time refers to viewing the page in a browser.
CAUSE
The DataGrid control does not parse the code in the code-behind window at design time. The custom column header names appear only if the DataGrid properties are set to connect to a data source.
STATUSThis behavior is by design.REFERENCES
For more information about the DataGrid control, refer to the following .NET Framework Software Development Kit (SDK) documentation:
Modification Type: | Minor | Last Reviewed: | 7/8/2003 |
---|
Keywords: | kbDataBinding kbide kbprb kbServerControls KB314110 kbAudDeveloper |
---|
|