.NET Tutorials, Forums, Interview Questions And Answers
HomeTutorialArticlesForumInterview QuestionCode SnippetsTechnology NewsFun Zone Poll Certification Search
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Home >> Forum >> Windows Application >> Post New Question Bookmark and Share  Subscribe to Forum

Seraching Listview item

Posted By :subash     Posted Date :26/06/2009    Points :2   Category :Windows Application
Hi,
I have listview and Textbox in a winform.Listview contains more than 10 items.I want to search listview items with textbox.text values.How it is Possible?

Thanks
Subash

Responses
Author: Amit Mehra        Company URL: http://www.dotnetspark.com           
Posted Date: 01/07/2009     Points: 5

Hi,
I think the only option is looping thru the DataSource of the ListView and where ever you got the data you have to color the entire row.

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Santosh        Company URL: http://santoshdotnetarena.blogspot.com           
Posted Date: 08/10/2009     Points: 5

hi
try with below code


For i As Integer = 0 To ListView1.Items.Count - 1
If ListView1.Items.Item(i).Text = TextBox1.Text Then
MessageBox.Show("Record Found")
End If
Next

Regards
Santosh
http://santoshdotnetarena.blogspot.com/

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   Silverlight IIS JQuery
JavaScript/VBScript Biztalk WPF Patten/Practices WCF Others
www.DotNetSpark.com UnAnsweredAll

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