Click here to Skip to main content
12,545,876 members (60,897 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
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.

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 2-Oct-12 15:55pm
Updated 2-Oct-12 17:08pm
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

your question is not enough to understand problem cab u explain what u want and where u facing problem ?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161018.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100