Skip to main content

Posts

Showing posts with the label How to Hide Grid View

How to Hide Gridview and Show the selected gridview row details in Form View using ASP.NET C#

In this post I'm going to post details about how to hide full Gridview by selecting individual gridview row and show that gridview row details in Formview; In this example, I'm using AdventureWorks Database and datebase table name HumanResources.Employee Click here to Download AdventureWorks Database   Here I'll post the code and snapshot details  1. Design View Add connection string code in web.config as below : 2.Design View's Source code in Default.aspx Untitled Page " SelectCommand="SELECT * FROM HumanResources.Department WHERE DepartmentID=@DepartmentID"> ...