On a form that has both a summary GridView and a DetailsView we would like to have the DetailsView populate with data when the page is initially displayed without the user needing to click on the “Select Button” in the GridView.
If this can be done, can you show the needed coding?
You can do following…
When page get’s loaded in page_load() check for page is postback == false;
In that get the first row’s primary key field value.
then use that value to bind detail view.
This is simple logic and it would work.
Code it and if not work paste it… I am not putting code intentionally 😉