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
}
C#: Convert from DataGridViewRow to DataRow
2 Responses
Leave a Comment
June 26th, 2007 at 8:19 pm
No me has dicho cuando vas a exponer en Ineta. Seria solido cualquier cosa de WCF y WPF. Dejame saber
Muy cool tu site, lo encontre con google.com
Rogelio
March 14th, 2008 at 7:39 pm
Thanks. This works very well for me.