Link to home
Start Free TrialLog in
Avatar of MichelleLacy
MichelleLacy

asked on

Compare Cell Content in DataGridView

I have a data grid view that uses a data table as its data source.  I want to add an if statement condition in my code that ensures that all of the  cell values in Column2 are the same.  If they are not the same, I want to disable one of the radio buttons on the form.  So essentially I was looking for a string comparison statement that compared all the cells in Column2 to the value of the 1st row in Column2 using a foreach statement.  I would like to see an example.
ASKER CERTIFIED SOLUTION
Avatar of xRalf
xRalf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MichelleLacy
MichelleLacy

ASKER

works wonderfully!!!