Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculated fields and entities
Message
 
 
À
19/06/2007 10:29:53
Duncan Mcdonald
Canadian Natural Resources Ltd
Calgary, Alberta, Canada
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Divers
Thread ID:
01234158
Message ID:
01234437
Vues:
14
Duncan,

this does the trick, I'm seeing the expected value in the grid now.
Just one issue (May be related to what I'm doing in the form):
When I redisplay the grid contents (based on user selecting a different parent record) I am getting an error
System.Reflection.TargetInvocationException: Property accessor 'Title' on object 'Business.MilestoneEntity' threw the following exception:'This row has been removed from a table and does not have any data.  BeginEdit() will allow creation of new data in this row.' ---> System.Data.RowNotInTableException: This row has been removed from a table and does not have any data.  BeginEdit() will allow creation of new data in this row.

   at System.Data.DataRow.GetDefaultRecord()
   at System.Data.DataRow.get_Item(String columnName)
   at Business.MilestoneEntity.get_Title()
I am running code like this:
this.oMilestone.GetMilestonesByProjectID(id);
this.mmDataGridView1.DataSource = this.oMilestone.CreateEntityList();
I guess I am doing something incorrectly in reassigning the datasource, any clues?
- Craig

"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform