CurrencyManager cm= BindingContext[dataGrid1.DataSource,dataGrid1.DataMember] as CurrencyManager; if (cm != null) { int rowindex=this.dataGrid1.CurrentCell.RowNumber;//或CurrentRowIndex cm.RemoveAt(rowindex); this.iSelectRowIndex = -1; }
转载于:https://www.cnblogs.com/deadshot123/archive/2006/12/11/588686.html