如何转换的DataRow DataRowView的在C# [英] How Can Convert DataRow to DataRowView in c#
本文介绍了如何转换的DataRow DataRowView的在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
能否或如何的DataRow转换为DataRowView的
例如:
DataTable的DT = ds.Tables [0];
的DataRow博士= dt.NewRow();
DataRowView的DRV = ????
解决方案
使用
DataTable的DT = ds.Tables [0];
的DataRow博士= dt.NewRow();
DataRowView的DRV = dt.DefaultView [dt.Rows.IndexOf(DR)];
Can or how to convert DataRow to DataRowView?
For example:
DataTable dt=ds.Tables[0];
DataRow dr= dt.NewRow();
DataRowView drv = ????
解决方案
Use
DataTable dt=ds.Tables[0];
DataRow dr= dt.NewRow();
DataRowView drv= dt.DefaultView[dt.Rows.IndexOf(dr)];
这篇关于如何转换的DataRow DataRowView的在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文