Click here to Skip to main content
13,624,568 members
Click here to Skip to main content
Articles » Languages » C# » Generics » Downloads

Stats

101.5K views
3.2K downloads
28 bookmarked
Posted 23 May 2010
Licenced CPOL

Convert a Generic List to a Datatable

, 23 May 2010
A Generic List with a feature of converting itself to a DataTable
GenericList
App_Code
App_Data
GenericList (2).sln.ccexclude
GenericList (2).suo
Web.Config
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:GridView ID="gvP" runat="server">
            </asp:GridView>
        </div>
        <div>
            <asp:GridView ID="gvU" runat="server">
            </asp:GridView>
        </div>
        <div>
            <asp:GridView ID="gvS" runat="server">
            </asp:GridView>
        </div>
        <div>
            <asp:GridView ID="gvD" runat="server">
            </asp:GridView>
        </div>
        <div>
            <asp:GridView ID="gvI" runat="server">
            </asp:GridView>
        </div>
    </form>
</body>
</html>

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 Author

Abhijeet Singhai
Software Developer
India India
I am a Bachelor of Engineering in Information Technology.

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01 | 2.8.180712.1 | Last Updated 23 May 2010
Article Copyright 2010 by Abhijeet Singhai
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid