I actually do this a lot, here’s how:
foreach (DataGridViewRow gridrow in DataGridView.Rows)
{
DataRow datarow = (gridrow.DataBoundItem as DataRowView).Row;
// do something with the datarow
}
Jun
20
I actually do this a lot, here’s how:
foreach (DataGridViewRow gridrow in DataGridView.Rows)
{
DataRow datarow = (gridrow.DataBoundItem as DataRowView).Row;
// do something with the datarow
}