portfolioHeaders = PortfolioService.GetPortfolioHeadersByQuery();
List<PortfolioHeaders> list = new List<PortfolioHeaders>;
list.AddRange(portfolioHeaders);
The above is the code.
the output of it will be ID, Name, Type and Modified Date.
when i use the list to Grid Datasource i could see all the records coming out perfectly.
Now My question is
I jUst want only the Name to be displayed in the ComboBox and ignoring the other things.
can anyone suggest me a way to do it
Use the DisplayMember attribute of your binding: