CurrencyManager cm = this.BindingContext[dataset, "tablename"] as CurrencyManager;
DataRowView drv = cm.Current as DataRowView;
if (drv != null)
{
drv.Delete();
}如果drv是datarow类型的那么就取不到当前行 cm.Current 是obj类型的为什么强制转换成datarow就不行 转换成DataRowView 就好用呢求解
调试欢乐多
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货