ASP.NET Gridview Column Hide

If you want to hide any column Of a grid you have hide it after load the grid.

Now i want to hide the id Column which contain 1,2,3,4.....

then the code will be on load event of the grid :

 private void LoadDivisionGridData()  
       _divisionslist = new List<Division>();  
       _divisionslist = _divisionManagerObj.GetAllDivisionInfo();  
       divisionGridView.DataSource = _divisionslist;  
       divisionGridView.Columns[0].Visible = false;  

after hide the Id column it will be look life

 Thank you.

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report