I have a collection which I wish to display in a datagrid.
It is a collection of a Name class which has Forename & Surname.
This works fine except I would also like to display the indexer of the collection, to give me a line number, in the datagrid like so:
1 John Smith
2 Bob Jones
Any ideas how I could go about this?
It is a collection of a Name class which has Forename & Surname.
This works fine except I would also like to display the indexer of the collection, to give me a line number, in the datagrid like so:
1 John Smith
2 Bob Jones
Any ideas how I could go about this?