求助!遇到个难题,大侠进来帮忙看一下,谢哈!!
我做的功能是进行光碟查询:
Try
dv1.Table = ds3.Tables("光碟管理表")
dv1.RowFilter = "光碟编号='" & TextBox1.Text & "' " & " and " & "光碟名称='" & TextBox2.Text & "'" & " and " & "名称首拼='" & TextBox3.Text & "'" & " and " & "导演='" & TextBox4.Text & "'" & " and " & "碟片数=" & TextBox5.Text & "" & " and " & "借阅次数=" & TextBox7.Text & "" & " and " & "主要演员='" & TextBox6.Text & "'" & " and " & "借阅次数=" & TextBox7.Text & "" & " and " & "借出数量=" & TextBox8.Text & ""
DataGrid1.DataSource = dv1
dv1.RowStateFilter = DataViewRowState.CurrentRows
DataGrid1.SetDataBinding(dv1, "")
Catch ex As Exception
MsgBox(ex.Message)
End Try
为什么以上代码不能实现???
谢谢了,有VB.net高手愿意帮帮小女子吗?加我Q361357965 谢谢。