D
David McCallum
Given the code below, what changes are needed to show only the current and
name fields on the grid, also to show the Boolean field as a checkbox.
TIA
David McCallum
class Person{
public int ID { get; set; }
public string Name { get; set; }
public DateTime DateOfBirth { get; set; }
public bool Current { get; set; }
}
public MyForm()
{
InitializeComponent();
List<Person> sessions=new List<Person>
{
new Person()
{
ID = 1,
Name = "person",
DateOfBirth =
DateTime.Now,
Current = true
}
};
}
name fields on the grid, also to show the Boolean field as a checkbox.
TIA
David McCallum
class Person{
public int ID { get; set; }
public string Name { get; set; }
public DateTime DateOfBirth { get; set; }
public bool Current { get; set; }
}
public MyForm()
{
InitializeComponent();
List<Person> sessions=new List<Person>
{
new Person()
{
ID = 1,
Name = "person",
DateOfBirth =
DateTime.Now,
Current = true
}
};
}