Hi Sweta,
To implement Edit and View modes in a Data View, you can use a Boolean attribute to control conditional visibility. Create a helper object with a Boolean attribute,
Eg: IsEdit and use it as the data source for a Data View. Inside this Data View, add two nested Data Views: one set to Editable as Yes, visible only when IsEdit as true and another set to Editable as No, visible only when IsEdit as false. By toggling the value of IsEdit, you can seamlessly switch between Edit and View modes.
Let me know if you need further clarification!