GridView, DetailsView and ModalPopup Controls in Master-Detail

I just can’t miss that one! It comes from Matt Berseth’s blog where he describes how GridView, DetailsView and ModalPopup Controls can be nicely working together.

image 32277640 7fe2 49d2 98f5 036ded667041 GridView, DetailsView and ModalPopup Controls in Master Detail

Here is a quick quote from his post:
“I am sure everyone is pretty familiar with Master/Details style of editing data, but just in case – here is how my page works. The grid shows 12 rows of customer data. The far right column in the grid contains a hyperlink that when clicked brings the detail view of the row into focus so the corresponding row can be edited. The detail view is a popup control and contains a Save and Close buttons. When close is clicked, the detail popup is dismissed and the user goes back to viewing the main grid. When they click Save, some simple validation checks are run (all are RequiredFieldValidators for this sample) and the new data values are persisted, and finally the detail popup is dismissed and the main grid is refreshed so that it displays the changes.”

You can find the rest here. Matt has done a wonderful job sharing also the source code.


2 thoughts on “GridView, DetailsView and ModalPopup Controls in Master-Detail

  1. Hi,

    how can i implement a master-details page with a gridview/formview component to edit and add new rows to database while using UpdatePanel?

    Thanks, Leon

Leave a Reply

Your email address will not be published. Required fields are marked *