Using GRID View with some example model which consist on text, list, bool and date column type.

//Person class definition
class Person
{
  private int id;
  private string name="";
  private string country ="";
  private int countryId;
  private Date birthDate;
  private bool isMarried = false;

public Person()
{
  
}

public int Id
{
  get { return id; }
  set {

}

}
class Country
{
  private int Id;
  private string Name;

public Country()
}
  
}

public ViewResult Index()
{
  List<IEnumerable> personList = new List<Person>();
  
  return View();
}





Last edited Dec 7, 2012 at 9:36 AM by blazej, version 8

Comments

No comments yet.