|
-
Oct 3rd, 2009, 09:23 PM
#1
Thread Starter
Junior Member
Custom business object databinding with dynamic fields
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|