Click here to Skip to main content
16,011,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I am using Data Gridview control in my project.Add some items in Data gridview control,then how to check existing item in gridview
Posted

You wanted to retrieve the items from data grid view? If yes,



MyGridView.Rows[index] - will give you specific data row



MyGridView.Rows[index].Cells[cellindex].value - will give you each field value
 
Share this answer
 
try this method
BindingSource.Find Method
 
Share this answer
 
The DataGrid is bound to a DataSource. You check the DataSource for duplicates not the DataGrid. How you do that is dependent on the DataSource being used.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900