If e.DataCol.Name="烤板"
If e.DataRow("烤板")=True
If e.DataRow("尺寸") > ""
Dim dr As DataRow=DataTables("尺寸档案").find("尺寸='" & e.DataRow("尺寸") &"'")
if dr isnot nothing then e.DataRow("单价")=dr("烤板价格")
End If
Else
If e.DataRow("尺寸") >""
Dim dr As DataRow=DataTables("尺寸档案").find("尺寸='" & e.DataRow("尺寸") &"'")
if dr isnot nothing then e.DataRow("单价")=dr("价格")
End If
End If
End If