必须用数据列,不能用表达式列
DataColChanged事件
If e.DataCol.Name = "名称" Then If e.DataRow.IsNull("名称") Then e.DataRow("字母") = Nothing Else e.DataRow("字母") = GetPy(e.DataRow("名称"), True) End IfEnd If