MethodInvoker methodInvoker = delegate()
{
DataTable dt = dataGridView1.DataSource as DataTable;
if (dt != null)
{
BindingManagerBase bm = dataGridView1.BindingContext[dataGridView1.DataSource];
if (bm.Count > 0)
{
if (bm.Current != null)
{
DataRow row = ((DataRowView)bm.Current).Row;
MessageBox.Show(row["column1"].ToString());
}
}
}
};
MethodInvoke 和BindingManagerBase用法 c#
最新推荐文章于 2020-10-27 21:50:05 发布