终于解决掉了,很变态的办法。哎。。。以下是解决的代码
If _ActiveCell And Not String.IsNullOrEmpty(value) And _MultiRowSheet.AllowUserToAddRows And _MCell.RowIndex = _MultiRowSheet.RowCount - 1 Then
If _MultiRowSheet.DataSource Is Nothing Then
_MultiRowSheet.MaxMRows = _MultiRowSheet.MaxMRows + 1
Else
_MultiRowSheet.DataSource.Rows.Add(_MultiRowSheet.DataSource.NewRow)
End If
_MultiRowSheet.AddSelection(_MultiRowSheet.MaxMRows - 2, _MCell.CellIndex)
_MCell = _MultiRowSheet.Rows(_MultiRowSheet.MaxMRows - 2).Cells(_MCell.CellIndex)
End If