Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a DataGridView on a form, the gridview has 5 columns, and x amount of rows.
The user can fill out a form to add a new row to the table and delete a selected index.
DataTable:

Name Type Event Container Image

obj1 typ1 event1 cn1 c:/obj1.png

obj2 typ2 event2 cn2 c:/obj2.png




I need to loop through all of the row names to find "obj2" from column "Name".

I need to find out if the first cell in a row contains "obj", something to tell me if it exists or not.

How do I do this in code?
Posted
Updated 2-Oct-12 17:08pm
v3
Comments
Ashraff Ali Wahab 2-Oct-12 22:48pm    
Loop through the data and search for the name,what is the issue you are facing?
shelby67 2-Oct-12 22:51pm    
I do not know where to begin as far as what to put in the foreach loops and so on.

1 solution

your question is not enough to understand problem cab u explain what u want and where u facing problem ?
 
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