Vibrant discussion about CSLA .NET and using the framework to build great business applications.
Quick reply please.........
Hi..
I have a Grid for selecting a Type name from a pop-up form .This gridview is bound to a BindingSource.For a existing item, when I try to add new item to grid,multiple records are added with blank type names, Its going to many times to the following piece of code
protected override object AddNewCore()
CSLA Version 3.0.5.0
Sounds like your code inside AddNewCore calls AddNewCore recursively (f.ex by calling list.AddNew).
What is the code inside AddNewCore?
Jonny Bekkum, Norway CslaContrib Coordinator
{
DepartmentType item = DepartmentType.NewADepartmentType();
this.Add(item);
return item;
}
Have you added additional code to events in the binding source?
Anyhow - you need to set a breakpoint inside AddNewCore and inspect the call stack when the call comes in for the first, second and third time. This should help you pinpoint where AddNewCore is called from.