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

GridView:Sorting & Paging Using Generics And Nullable Datatype Function Of C# GetValueOrDefault()

Rate me:
Please Sign up or sign in to vote.
4.31/5 (9 votes)
8 Dec 2008CPOL3 min read 63.4K   720   28  
This article demonstrate the Sorting mechanism for Nullable datatype when used with IList collection.
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 Utility
/// </summary>
namespace SortingAndPaging
{

public class Utility
{
    public enum SortOrder
    {
        Asc,
        Desc

    }
}

}

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
Technical Lead
Australia Australia
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

Comments and Discussions