Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Simple Datagridview code
Marto
16y
4.6k
1
Reply
m new to C#.NET and am stuck, I need to compare all the rows of a datagridview at the values of a given column and if the values in the given column of the two rows dont match return the value of the column of that current row.Hence getting unique values. (Am sure someone has done this before here).
That is given that you will be checking if (datagridView.Rows[z].Cells[0].Value.toString() != datagridView.Rows[z+1].Cells[0].Value.toString())
So it should return the value of the first. This should run thru the full datagrid returning the unique values only.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
TreeView from Class (Reflection Question)
Linked combo boxes