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

An Expandable .Net GridView

Rate me:
Please Sign up or sign in to vote.
4.91/5 (10 votes)
24 Oct 2013CPOL4 min read 53.2K   3K   26  
An expandable .NET GridView control
body
{
    font-family: Arial;
    font-size: 14px;   
}

div.demoMenu
{
    width: 100%;
    text-align: center;
    margin: 180px auto;
}

div#welcomeBanner
{
    width: 100%;
    font-size: 20px;
    font-weight:bold;
    text-align: center;
    color: #8C5D20;
    text-align: center; 
    margin: 120px auto 80px auto;   
}

div#welcomeBanner span#welcome
{
    font-size: 28px;
    color: #1A2569; 
}

div#welcomeBanner span#author
{
    color: #1A2569;   
}

div#demoNote
{
    width: 100%;
    font-size: 16px;
    font-weight:bold;
    text-align: center;
}
        
/*** Grid styles ***/
.datatable
{
    width:90%;
    margin:10px auto;
    border-collapse:collapse;
    border:1px solid #cdcdcd;
    font-size: 12px !important;
}

/*** Header styles ***/
.datatable th
{
    background-color: #DEE4E6;
    height: 24px;
    padding: 5px
}

.row
{
    height: 24px;
    background-color: #fff;
}

.alt-row
{
    height: 24px;
    background-color: #f1f1f1;
}
        
.datatable td
{
    padding: 5px
}

.setting
{
    width:90%;
    margin:10px auto;
    padding: 5px;
}

.setting table
{
    width: 100%;
}

.setting table td
{
    padding: 5px;
}

.setting table td.label
{
    text-align: right;
}

.setting table td.value
{
    text-align: left;
}

a
{
    text-decoration: underline;
    cursor: pointer;
}

.detailFieldSet
{
    border-right-width: 2px; 
    border-collapse: collapse;  
    padding: 5px;
}

.detailFieldSet img
{
    height: 200px;
}


.detailTable
{
    border: 0px;
    width: 100%;
}

.detailTable td.label
{
    text-align: right;
    width: 40%;
    padding: 5px;
    border-width: 0px;
}

.detailTable td.value
{
    text-align: left;
    width: 60%;
    padding: 5px;
    font-weight:bold;
    border-width: 0px;
}

.noteTable
{
    border: 0px;
    width: 100%;
}

.noteTable textarea.noteArea
{
    height: 142px;
    width: 100%;
}

.noteTable span#noteLimit
{
    font-style: Italic;
    text-align: center;
}

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
Software Developer (Senior) TrafficTech Inc.
Canada Canada
I am Sitang Ruan, a .Net developer focus on web application development for 6 years. I like to write elegant and efficient codes to provide user a smooth and solid experience. I also like to take very complicated and challenging tasks.

Comments and Discussions