문제

I have a formview that I want to disable some of the automatically generated buttons on under certain conditions (i.e. certain users can't delete). For a detailsview, I can simply use:

dvInstance.AutoGenerateDeleteButton = false;

However the same option does not exist for a formview. How can I disable the automatically generated buttons for a formview?

도움이 되었습니까?

해결책

That's because it is a different web control. To achieve what you want you will need to specify the form's templates (ItemTemplate, EditItemTemplate and FooterTemplate) and then provide your own command buttons if required.

Hope it helps

Leo

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top