If e.DataCol.name = "日期" Then If e.DataRow.Isnull("日期") Then e.DataRow("编号分期") = e.DataRow("日期").year & "-" & format(e.DataRow("日期"),"MM") Else e.DataRow("编号分期") = e.DataRow("编号分期") End IfEnd If
我的想法是当日期列不为空时编号分期为 e.DataRow("日期").year & "-" & format(e.DataRow("日期"),"MM"),日期为空时引用编号分期列上一行的数据,绿色代码该怎么改