WinForm中DataGridView获取当前行绑定数据扩展
摘要:
public static T GetCurrentRowObject<T>(this DataGridView dv) { CurrencyManager cm = (CurrencyManager)dv.BindingContext[dv.DataSource]; return (T)cm.Current; } 阅读全文
posted @ 2011-12-16 12:46 繁星世界 阅读(649) 评论(0) 推荐(0) 编辑