嗨,这是我从查询中获取数据的代码,但我需要检查一些值,例如任何列中是否有 0,然后将其替换为 NA
Dim op As New cad
Dim dt As DataTable = op.Fetchbooks().Tables(0)
Dim sb As New StringBuilder()
Dim rp As System.Data.DataRow
If dt.Rows.Count > 0 Then
ListView1.DataSource = dt
ListView1.DataBind()
DropDownList1.DataSource = dt
DropDownList1.DataTextField = "Description"
DropDownList1.DataValueField = "Description"
DropDownList1.DataBind()
End if
那么有什么方法可以在绑定之前检查一些值并在数据表中进行编辑???