Information générale
Titre:
Creating a Business Object
Hi.
I've just created my forst Business Object in .Net which stores all records into a DataSet, which is displaying nicely in a grid.
I now want to amend 'One' of the records in the grid, and am wondering whats the best way to tackle this. (I would prefer to do this in a separate 'Edit' Tab on the page rather than in the grid itself)
I reckon my options are:
1. Is there an automatic way that I can 'Simple' bind the fields of the 'current' record in the existing dataset (I dont know if this can be done or how to do it)
2. Copy the particular record I want to amend out to another 'dataset' and use 'Simple Data Binding' to bind to each field in this second dataset
3. Dynamically Create Properties of my Business Object which would be the field names of the dataset, and then bind these to the text boxes etc.
Option no. 3 would seem to me to be the most 'Object Oriented' but I am open to any suggestions on how to accomplish the best result.
Regards,
Gerard
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement