知道原因了
设置DataColChanged代码就行:
If e.DataCol.Name = "姓名" Then
e.DataRow("照片") = e.DataRow("姓名") & ".jpg"
End If