Dynamic columns
You can make columns appear conditionally using normal Razor logic such as @if
. Example:
Also, in this example the column's Width parameter is being set instead of specifying all widths for all
columns in the GridTemplateColumn
parameter.
Show:
ID | Name |
---|---|
1 | Martin, Jean |
2 | Langa, António |
3 | Smith, Julie |
4 | Sari, Nur |
5 | Hernandez, Jose |
6 | de Vries, Bert |
7 | Martin, Jaques |
8 | Johnson, Elizabeth |
9 | Berger, Jakob |
Download: