I need a solution for this.
I need to create a view model to represent the grid. This model must be strong typed. ex.
List<Person> lstPersons=new List<Person>();
something like that. Also, with this I have to have custom column header names. I can go with data annotation with AutoGenerateColumns="True"
turned on AutoGenerateColumns="True"
like
class Person { [DisplayName("Person Name")] public string name { get; set; } }
something like that. But I have 2 questions.
I do not know how to change this display name at runtime.
I am using telerik RADGridView. with this, when I use AutoGenerateColumns="True"
and ShowColumnFooters="True"
, the whole user interface gets stuck. I think this is a mistake with telerik control. Therefore, I have to define all the columns in XAML and add a binding path for each.
In any case, this is possible with a DataTable. but I believe that data tables are a very complex structure and a heavy object.
How to create a viewmodel for this? Any suggestions?
Feel free to ask any questions. im not sure the above description is available to everyone.
source share