displayname in Datagrid #5220
-
Hello, is it possible to retrieve display name from my model and use it in Datagrid Column Caption ?
or in label : Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
David-Moreira
Jan 19, 2024
Replies: 1 comment 6 replies
-
I have something similar to what you want around here:
You could also go further and make your own grid column based on ours that automatically gets the caption from the attribute based on the Field that's been set. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code seems ok from looking at it. Try
Caption=@(GetDisplayName<ProductBrandVM>("ProductBrandName"))
just in case.