happysmile
happysmile

Reputation: 7777

Mode is not changing in detailsview

in details view once i click edit mode. all the controls are getting into edit mode. i make the changes and give update data is updated in database . but still all the controls are in edit mode only "actaully once we give click then update then i should again gone to read only mode means all the values should again be showing in label field"

i am doing this in .cs file only no sqldatadource is used or object datasource

right now this feature is not happening to me. what is the issue here?

looking forward for an solution thank you

Upvotes: 3

Views: 1472

Answers (1)

tvanfosson
tvanfosson

Reputation: 532485

Since you aren't using any built-in code to do the update, you probably need to change the display mode manually during your update.

myDetailsView.ChangeMode( DetailsViewMode.ReadOnly );

Upvotes: 2

Related Questions