The following help document provides exactly the same information of what you are trying to achieve. You need to check for the CommandName in the ItemCommand event of the grid and then switch the user control accordingly. Go through the document to understand better: Different edit forms on edit and insert