Click here to Skip to main content
15,886,799 members
Articles / Web Development / ASP.NET

Dynamic Multiple Row Column Grid Header

Rate me:
Please Sign up or sign in to vote.
4.47/5 (13 votes)
15 Jul 2008CPOL3 min read 156.8K   3.2K   44  
Creating a dynamic header for a DataGrid or GridView with multiple row/columns in ASP.NET.
using System;

public class DynamicHeader
{
    public int HeaderDepth { get; set; }
    public String[] Headers { get; set; }
	public DynamicHeader(String header)
	{
        Headers = header.Split('|');
        HeaderDepth = Headers.Length;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Fountainhead Software Solutions Private Limited
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions