>>>On the MSDN forum a similar problem was manifested in some code that performed a delete on a DataTable inside a foreach loop of the DataRows of the DataTable. The suggestion there was to store the DataRow indices that you want to delete into an array and once you have chosen your targets and lleft the loop scope delete them outside the loop all at one time by looping the array.
>>>
>>>Is your code called in a loop?
>>
>>No, I call this method to delete a row from a grid on the highlighted item. I only press the Delete Menu item once.
>>
>>However, the biz object actually deletes the record from the table. Perhaps I should reverse the logic and first delete from the DataTable?
>>
>>I can show the code in Biz Object once I got my computer working - it failed yesterday and now would not want to boot up at all.
>
>
>I don't understand all the hoopla..... if your grid is bound to the datatable, delete the record from the datatable and refresh the grid....
Thanks. Not sure why did we need to call BizObj method here.
If it's not broken, fix it until it is.
My Blog