Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > search Data in Datagridview in VB.Net 2005
 

search Data in Datagridview in VB.Net 2005

How to search a value in datagridview and it should return a row index
I have the column index
I dont want to go for looping.
Manish Panchal  Friday, July 31, 2009 5:30 AM
If your datagridview is databind , then you can use Find method of BindingSource, it will return rowIndex.
Otherwise you have to loop all rows.
NareshG  Friday, July 31, 2009 8:00 PM
If your datagridview is databind , then you can use Find method of BindingSource, it will return rowIndex.
Otherwise you have to loop all rows.
NareshG  Friday, July 31, 2009 8:00 PM

You can use google to search for other answers

Custom Search

More Threads

• Reading from XML and bound to DatagridView : Adding rows dynamically
• Form only saves last changes to database
• Problem with DataGridView
• Connecting to MySQL Views: Unknown SQL Type
• Creating new master record when adding detail via dialog
• DataAdaptor help needed
• How to access DataSource's DataSet
• Sorting a DataGridView image column
• information regarding binding navigator control
• Invisble checkbox in datagridview