I have two asp.net devexpress gridviews in master/detail configuration. I expand a master row to display the child rows and do manipulations on the child rows such as edit, add new and delete rows. After that I want the parent gridview to collapse and both the gridviews to refresh with new data. Please let me know how could I do it. On devexpress site I see the mention of CollapseRow and ExpandRow javascript clientside methods. But couldn't find any sample code describing how to call those.
Thanks
Best Answer
First assign clientInstanceName to grid as:
When you complete update or delete as you said call
grid.CollapseAllDetailRows();
after the operation that you have completed. or on ASPxClientGridView.DetailRowExpanding Event set the expanded detail rowvisibleindex
. check the following code snippet and code as per your requirement.