Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Fixing a Header in Datagrid

, , 25 Jun 2009 CPOL
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)

Share

About the Authors

S.Rajeshwar
Web Developer
India India
No Biography provided

raj8696
Web Developer
India India
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150327.1 | Last Updated 26 Jun 2009
Article Copyright 2009 by S.Rajeshwar, raj8696
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid