• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

commandname property to close the template

Is there a commandname to close the empty edit template ?
1 Solution
Easwaran ParamasivamCommented:
No. There is no existing command name. Please refer http://www.dotnetspider.com/resources/29757-Gridview.aspx

You can set your own command name and handle the event in Gridview_RowCommand and write code to close the empty edit template. This can be achieved by canceling the edit. Please refer http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowediting.aspx

zachvaldezAuthor Commented:
It is a detailsview control placed inside an Empty Edit template.You cam placed Insert,
Delete,Cancel. You are suggesting to placed a linkbutton instead
And do a redirect to the gridview.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now