Mark
Mark

Reputation: 53

load page with detailsview in insert mode

I have an ASP.Net page with a gridview and detailsview...when I click an item in the gridview, the detailsview is displayed and populated with the details of the selected user from the gridview....currently, when I first load the page and no user is selected from the gridview, I don't see the detailsview...how can I display the detailsview in insert mode when the page is loaded...before a user has been selected from the gridview?

Upvotes: 2

Views: 3864

Answers (1)

Phaedrus
Phaedrus

Reputation: 8421

DetailsView1.DefaultMode = DetailsViewMode.Insert;

Upvotes: 5

Related Questions