Click here to Skip to main content
15,898,134 members
Articles / Web Development / XHTML

Bulk Edit with GridView without xxxDataSource (SqlDataSource, ObjectDataSource, etc.)

Rate me:
Please Sign up or sign in to vote.
4.35/5 (16 votes)
22 Jun 2008CPOL4 min read 220.7K   7.4K   63  
How to implement bulk edit with GridView without xxxDataSource (SqlDataSource, ObjectDataSource, etc.)
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 ProductEntity
/// </summary>
public class ProductEntity
{
    private int _productID;
    private string _productName;
    private double _unitPrice;
    private bool _discontinued;
    private DateTime _lastChange;

    public int ProductID
    {
        get
        {
            return _productID;
        }

        set
        {
            _productID = value;
        }
    }

    public string ProductName
    {
        get
        {
            return _productName;
        }

        set
        {
            _productName = value;
        }
    }

    public double UnitPrice
    {
        get
        {
            return _unitPrice;
        }

        set
        {
            _unitPrice = value;
        }
    }

    public bool Discontinued
    {
        get
        {
            return _discontinued;
        }

        set
        {
            _discontinued = value;
        }
    }

    public DateTime LastChange
    {
        get
        {
            return _lastChange;
        }

        set
        {
            _lastChange = 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
Software Developer (Senior) sparesFinder
Italy Italy
I'm an Italian Software Developer from about 15 years.
I worked a long time in south Italy (where I was born) and after 2 years in Milan and an year in UK, I'm working remotely from Italy as Senior ASP.NET C# Developer using ASP.NET Ajax technology for a UK company.

Check out my personal blog:
http://techcookies.net/

and my first Android game (Fifteen Puzzle X):
https://play.google.com/store/apps/details?id=it.megasoft78.fifteenpuzzlex

Comments and Discussions