I have DevExpress MVC GridView which is bound to Model (List < Employee >), but I don't have all class properties added as table columns. When UpdateRowRouteValues is called, I'll get new Employee instance in controller method parameter, but not all properties are set (those which are not in columns collection). Is there any way how to get this instance with all properties set (all old values set + modified)?
Example: class Employee -FirstName, LastName, Age, IsActive
Columns: -LastName, Age
Then in controller I want to have FirstName and IsActive old/unchanged values and new LastName and Age values, but in parameter are FirstName null and IsActive false.
In addition I don't want to add all properties as columns and set Visible=false, because you can still see them in Column Chooser.
I was thinking about creating new extra class with LastName,Age properties only and then merge these two instances, but not sure if it's the best solution for large project where columns could be changed often (maintain two classes for one table and merge function).