If e.DataCol.Name = "B" Then If e.newvalue = Nothing Then e.DataRow("A")= Nothing Else e.DataRow("A") = format(e.newvalue, "yyyyMM") End IfEnd If