Michael Wheeler
Michael Wheeler

Reputation: 2497

How to display selected GridView row in DetailsView

I have a aspx page that has a GridView with a datasource of an array of the Client class. I would like to include a DetailsView below the GridView that shows the information of the selected GridView row and allows the user to edite that row. When they are done editing the row, I plan to call the web service to update the row.

Is there an easy way to link the selected GridView row to the DetailsView?

Upvotes: 0

Views: 2064

Answers (1)

Henry Gao
Henry Gao

Reputation: 4936

There is a GridView_SelectedIndexChanging event you can use then you can update the datasource for the DetailView. After editing, users can upload the result to call the web service.

Upvotes: 1

Related Questions