I have a viewModel that contains a list of entities
public class MyEntity
{
public int ID {get;set;}
public string Name {get;set;}
public string CellPhoneNo {get;set;}
}
If I setDataSource to grid, all columns are shown, as expected.
What I would like to do it decorate my ID property with something like that
[HiddenInput(DisplayValue = false)]
so it would not show at all.
Is it possible or will i need to generate all my DataColumns in my Razor file