B
Bob
When displaying data from the database, very often the field names are not
suitable so custom headings have to be created, For example, the column
storing zip code may be named zip, but when displayed, it may need to be
displayed as "Zip", "Postal Code", "Zip/Postal Code" etc. DataGrid/DataList
allow headings to be created but it's usually hardcoded. And the hardcoding
is even worse if a row of data is to be displayed in columns, e.g. user
profile data is usually stored as rows but when editing one user, it's
usually displayed as a two column table, the first column with headings
(First Name, Last Name, etc), and the second column input boxes.
I would very much like to avoid hardcoding the field name to display words
mapping at all, and wonder how it's usually done. Where do people maintain
such a mapping and how?
Thanks for any suggestions.
Bob
suitable so custom headings have to be created, For example, the column
storing zip code may be named zip, but when displayed, it may need to be
displayed as "Zip", "Postal Code", "Zip/Postal Code" etc. DataGrid/DataList
allow headings to be created but it's usually hardcoded. And the hardcoding
is even worse if a row of data is to be displayed in columns, e.g. user
profile data is usually stored as rows but when editing one user, it's
usually displayed as a two column table, the first column with headings
(First Name, Last Name, etc), and the second column input boxes.
I would very much like to avoid hardcoding the field name to display words
mapping at all, and wonder how it's usually done. Where do people maintain
such a mapping and how?
Thanks for any suggestions.
Bob