Hi
I’m struggling to find a way to show Parent Category data as the ‘Name’, rather that the CategoryID.
I am using the GridView with a SQLDataSource connection string to retrieve the following information from a database table.
Here is the current output.
| CategoryID | Name | ParentCategory |
| 01 | Antiques | |
| 02 | Bikes | |
| 03 | Food | |
| 04 | Biscuits | 03 |
| 05 | Crisps | 03 |
| 06 | Banana | 03 |
And the desired output is to be as below. I have converted the ParentCategory field to a template field, but so far have not able to figure out how to show the ParentCategory Name, and not the CategoryID.
| ID | Name | ParentCategory |
| 01 | Antiques | |
| 02 | Bikes | |
| 03 | Food | |
| 04 | Biscuits | Food |
| 05 | Crisps | Food |
| 06 | Banana | Food |
Any pointers would be greatly appreciated.
Many Thanks, James