Hello

Suppose that I have a Field class that has two properties: FieldName and Value. A collection of Field objects would be contained within a Record object.

I would like that when I assign a Record object to the DataSource property of a DataGrid control, then the control would "understand" that it has to iterate through the Field collection in order to know what columns to render -the same way as with a DataTable. Since I am assigning a single Record object, then modifying a cell of the only available row would automatically update the Value property of the corresponding Field object.

How do I have to program the Record class in order to do so?

Thanks a lot.