Dan,
>UI still displays the last values. The controls bind to the b.o. that gets/sets it data from a DataRow. Any ideas there?<Hmmm ... no, not off the top of my head. I haven't bound controls to a BizObject, I've always bound them to DataSets/Tables, so I'm not sure where the problems might be with that.
Sorry .... =(
~~Bonnie
>Bonnie,
>
>Thanks for responding. I kinda thought about that. I'm adding a RejectChanges method to my b.o. that with check the RowState. If the RowState is added it will initialize all columns back to default values. If the RowState is Deleted or Modified I will just call the row's RejectChanges method. Should work ... I think.
>
>However, I'm having some troubles getting the UI to update. After I call Reject changes my UI still displays the last values. The controls bind to the b.o. that gets/sets it data from a DataRow. Any ideas there?
>
>Thanks,
>Dan
>
>>Dan,
>>
>>How about just adding the Row back in again after the RejectChanges() ...
>>
>>~~Bonnie
>>
>>
>>>I have a DataTable that I append a DataRow into. The row has a RowState of Added. When a user want's to cancel any changes they have made I call the RejectChanges method for the row. This removes the row from the table, which is not the intent. The intent is to clear any changes made. Is there a way to do this without having to save the record before allowing the user to edit?
>>>
>>>Thanks,
>>>Dan