此主题相关图片如下:逻辑.png
If e.DataRow.isnull(e.DataCol.name)=False ThenIf e.DataCol.name.StartsWith("支出_项目") Then e.DataRow("方向")=True Else If e.DataCol.name.StartsWith("收入_项目") Then e.DataRow("方向")=True End IfEnd If老师,当方向值显示就锁定