📜  c# 数据表当前行 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:05.610000             🧑  作者: Mango

代码示例1
CurrencyManager cm = (CurrencyManager) this.BindingContext[this.gridDataBoundGrid.DataSource, this.gridDataBoundGrid.DataMember];
DataRow dr = ((DataRowView) cm.Current).Row;
this.label1.Text = dr["Col"].ToString();