Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculated fields and entities
Message
From
20/06/2007 05:36:41
 
 
To
19/06/2007 10:29:53
Duncan Mcdonald
Canadian Natural Resources Ltd
Calgary, Alberta, Canada
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Vista
Miscellaneous
Thread ID:
01234158
Message ID:
01234437
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform