I want to try and use a list of objects as my data source where the object contains multiple fields and I am populating the listbox programmatically. If I set the Datasource of my list box to the object how can I set what fields actually show up in the listbox I tried using templates but I couldn't get that to work.
List<Keyword> resultList = keywordService.FindKeywords();
canonicalSearchResults.DataSource = resultList;
I want the Keyword's name field to appear in the textbox but be able to keep the datasource as a list of keywords so that I can later access them. Right now it calls the tostring method and displays the result but the toString method is different than what I want displayed