foreach on DataGridViewRowCollection problem

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

..NET 2.0

In a foreach statement in the code I want to loop through all the rows in a
DataGridView controller I have on a form.

I've tryed this (which won't work)
foreach (DataGridViewRowCollection.Rows row in datagridview1) {
}

I have trouble with DataGridViewRowCollection.Rows.
DataGridViewRowCollection.Rows cannot be correct.. I know it has to be the
type of the row but not sure what type it is?

any suggestions?

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top