|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ListViewExtendedItem
{
public class TestClass
{
private int _id;
private string _name;
private DateTime _date;
[ListViewColumn("colID")]
public int ID
{
get { return _id; }
set { _id = value; }
}
[ListViewColumn("colName")]
public string Name
{
get { return _name; }
set { _name = value; }
}
[ListViewColumn("colDate")]
public DateTime Date
{
get { return _date; }
set { _date = value; }
}
public TestClass(int id, string name, DateTime date)
{
_id = id;
_name = name;
_date = date;
}
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.