Thursday, June 7, 2012

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.

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...