To use templates, the grid must be bound with named model. This can be done by specifying the model type using the
ModelType property of the grid component as follows.
Most of the templates used by grid are of type
RenderFragment<T> and they will be passed with parameters. You can access the parameters passed to the templates using implicit parameter named
Mapping to context object does not works if model property starts with lower case letter.
See attach. Emp and EmpWrong looks the same but second one does not show id of employee in the 1st column.