By Ian Hammond - 2/10/2011
I have a curious issue when adding a new row to a BO. I perform a BO.Add() function, then I overwrite the firlds in the row with data from the screen manually followed by a BO.Save(). When I interrogate the datatable I find that the current row has been changed with the data I have just input and a new row of zeroes appended to the same table. It looks as if the .Add() has put the current row into Edit mode. Can anyone please advise, many thanks.
|
By Edhy Rijo - 2/10/2011
Hi Ian,
You may see that kind of things when having either a BO.Filter or BO.Sort, if that is the case, when BO.Add() is call the data will be filtered or sorted automatically, so you must temporarily disable the BO.Filter or BO.Sort to add new records.
|
By Ian Hammond - 2/10/2011
Many thanks for your prompt reply, that has fixed my problem.
Regards
|
By Edhy Rijo - 2/10/2011
You are welcome Ian.
|
|