Halo all
I have 2 level grid.
Master - Detail.
I use NeedDataSource to bind to db.
When i insert/update the detail,
i need to sum the detail and show on master.
On UpdateCommand event,
i use grid.Rebind() to refresh the grid.
It works as i want, but the edit form is not close.
Edit form will close (as normal) if i am not using rebind()
I have tried to rebind and call the e.item.edit = false,
but it will close all the hierarchy.
Is there any way to call Rebind() in UpdateCommand event
and close the editform template?
Or is there any other better way, to refresh the master when any changed on the detail?
Thanks in advanced.
Chayady
I have 2 level grid.
Master - Detail.
I use NeedDataSource to bind to db.
When i insert/update the detail,
i need to sum the detail and show on master.
On UpdateCommand event,
i use grid.Rebind() to refresh the grid.
It works as i want, but the edit form is not close.
Edit form will close (as normal) if i am not using rebind()
I have tried to rebind and call the e.item.edit = false,
but it will close all the hierarchy.
Is there any way to call Rebind() in UpdateCommand event
and close the editform template?
Or is there any other better way, to refresh the master when any changed on the detail?
Thanks in advanced.
Chayady