Melody

灵魂,是一球千羽的蒲公英,一吹,便飞向四方。

 

DataGridView选定行对应数据集中的数据行


1 DataGridViewRow gridRow = dgvProducts.CurrentRow;
2 DataRowView rowView = (DataRowView)gridRow.DataBoundItem;
3 ProductData.ProductRow sourceRow = (ProductData.ProductRow)rowView.Row;

注:dgvProducts是用来显示数据的DataGridView,ProductData是自定义的数据集。

posted on 2006-06-30 09:46  茶包  阅读(798)  评论(0编辑  收藏  举报

导航