End If
End Function
'---------------以下内容操作更新------------------
Private isediting As Boolean = False '是否在修改状态
Private oldvalue As Object '原始值
'点击单元格,准备编辑(★)
Protected Overloads Overrides Sub Edit(ByVal source As System.Windows.Forms.CurrencyManager, ByVal rowNum As Integer, ByVal bounds As System.Drawing.Rectangle, ByVal [readOnly] As Boolean, ByVal instantText As String, ByVal cellIsVisible As Boolean)
Console.WriteLine("edit") '---------
'直接触发父类事件,是为了达到点击后选中文本的效果。(如果不触发就要自己把textbox移动到对应的边框内)
MyBase.Edit(source, rowNum, bounds, [readOnly], instantText, cellIsVisible)
'设置修改码
isediting = True
'记录原始值
oldvalue = Me.GetColumnValueAtRow(source, rowNum)
End Sub
'对输入的修改进行提交(★)
Protected Overrides Function Commit(ByVal dataSource As System.Windows.Forms.CurrencyManager, ByVal rowNum As Integer) As Boolean
Console.WriteLine("in commit") '---------
| 对此文章发表了评论 |

