Click here to Skip to main content
15,886,067 members
Articles / Web Development / CSS

Fixing a Header in Datagrid

,
Rate me:
Please Sign up or sign in to vote.
3.75/5 (3 votes)
25 Jun 2009CPOL1 min read 32.5K   14  
A simple way to fix the Datagrid header using JavaScript and CSS
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for DataGridSource
/// </summary>
public class DataGridSource
{
    private string _col1Data;
    public string Col1Data 
    {
        get { return _col1Data; }
        set { _col1Data = value; } 
    }
    private string _col2Data;
    public string Col2Data 
    {
        get { return _col2Data; }
        set { _col2Data = value; } 
    }
    private string _col3Data;
    public string Col3Data 
    {
        get { return _col3Data; }
        set { _col3Data = value; } 
    }
}

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
Web Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Written By
Web Developer
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