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 茶包 阅读(636) 评论(0) 编辑 收藏

导航

统计

公告