.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> WPF >> Post New QuestionBookmark and Share Subscribe to Forum

Reagaring List View ISSUE

Posted By: sathyangiri     Posted Date: January 16, 2011    Points:2   Category :WPF
Hi,

My Requirement is Hiding few columns in List view using WPF+C#.Any body have knowledge on this please share to me.




Thanks,
Giri Patil.

Responses
Author: Creative13             
Posted Date: September 07, 2011     Points: 20   

Hey Sathyangiri ,

You just need to set the ListView's particular Column's Width property to 0 .
so that it will not shown in ListView on execution, but you can access value of it by using its index.




//Sample Code:

// ListView's Internal Name is MenuListView.
//
// Your other code snippet to
// put data into ListView.
//

MenuListView.Columns[0].Width = 0;




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend