Hello,
I am from germany, my English is not the best. But I hope I can find an answer for my problem, because I had no luck in different other forums.
I build a String with the StringBuilderClass.
dim rwStr as new System.Text.StringBuilder
After starting the procedure, the string contains...
rwStr = "PersNr = '6015' Or PersNr = '6072'" (and so on)
Now I tried to hand over the String to a RowFilter
Dim dv as new DataSet()
dv.RowFilter = rwStr.Tostring
DataGrid1.DataSource = dv
The Problem is, the RowFilter did not accept the string. The DataGrid showed no changes. (but also no fault/mistake)
If I hand over the same string by hand everthing is fine.
dv.RowFilter = "PersNr = '6015' .....
So my question is, is there any chance to deklare a variabel, which I can hand over to the RowFilter. The whole Code works towards to that string.
I am thankeful for every help.
Bye Conrad
I am from germany, my English is not the best. But I hope I can find an answer for my problem, because I had no luck in different other forums.
I build a String with the StringBuilderClass.
dim rwStr as new System.Text.StringBuilder
After starting the procedure, the string contains...
rwStr = "PersNr = '6015' Or PersNr = '6072'" (and so on)
Now I tried to hand over the String to a RowFilter
Dim dv as new DataSet()
dv.RowFilter = rwStr.Tostring
DataGrid1.DataSource = dv
The Problem is, the RowFilter did not accept the string. The DataGrid showed no changes. (but also no fault/mistake)
If I hand over the same string by hand everthing is fine.
dv.RowFilter = "PersNr = '6015' .....
So my question is, is there any chance to deklare a variabel, which I can hand over to the RowFilter. The whole Code works towards to that string.
I am thankeful for every help.
Bye Conrad