.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 >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

Seraching Listview item

Posted By: subash     Posted Date: June 26, 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             
Posted Date: July 01, 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             
Posted Date: October 08, 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  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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