How to Fix the Header of GridView in ASP.net

The ASP.NET GridView control contains a header for each column, so you can display a title to explain the data contained in the column. When you add a GridView control to the ASP.NET Web page, the HTML is automatically generated in the Visual Studio designer. To edit the header text, you edit the text located in the column's header tags.

Instructions

    • 1

      Click the Windows "Start" button, and select "All Programs." Click "Microsoft .NET," then click "Visual Studio." Open your GridView Web project after VS loads.

    • 2

      Double-click the ASP.NET Web form in Solution Explorer to view the GridView. Click the GridView in the designer, and click "Edit Columns," then a configuration window opens.

    • 3

      Click the column you want to edit, and type a new header text in the property section labeled "Header." If you want to change any fonts or colors, change the header styles in the section labeled "Styles."

    • 4

      Click "OK" to apply the header changes. The changes take effect and display in the VS designer, so you can review the changes and any associated styles.

Related Searches:

References

Comments

Related Ads

Featured