请问为什么在prepareedit 里面用 以下语句运行速度会非常的慢?是什么原因了?
'If e.Col.name ="始发地" Then
'Dim cmd As new SQLCommand
'Dim dt As DataTable
'cmd.C
'cmd.CommandText ="select * from{数据表}"
'dt=cmd.ExecuteReader()
'e.Col.ComboList = dt.GetComboListString("数据名称","数据类型 = '收发货地点'")
'End If
'
''---------------------------------------------------
'
'If e.Col.name="条码号" Then
'Dim cmd As new SQLCommand
'Dim dt As DataTable
'cmd.C
'cmd.commandtext = "select * from {条码库信息} where 条码号 = '" & e.Table.current("条码号") & "'"
'dt=cmd.ExecuteReader
'If dt.DataRows.Count >0 Then
'
'Dim dr As DataRow = dt.DataRows(0)
'Dim r As Row = Tables("入库表").current
'r("条码号") = dr("条码号")
'r("品牌") = dr("品牌")
'r("产品类型") = dr("产品类型")
'r("尺码")=dr("尺码")
'r("颜色")=dr("颜色")
'End If
'End If
'