Hi, I have a rather big DataTable which is filtered by using a DataView and it's RowFilter property.
At the moment we have a rather complex user control which generated a where statement for the data. The output given is something along the lines of:
"ID Like '%123' AND Name Like '%Stefan%' OR ID Like '%456' AND Name Like '%Test%'"
What I would like to do is group the statements for example: notice the brackets....
"(ID Like '%123' AND Name Like '%Stefan%') OR (ID Like '%456' AND Name Like '%Test%')"
Can this be done using the RowFilter property? doing it on a SQL level is not an option :(
Thanks, Stefan
At the moment we have a rather complex user control which generated a where statement for the data. The output given is something along the lines of:
"ID Like '%123' AND Name Like '%Stefan%' OR ID Like '%456' AND Name Like '%Test%'"
What I would like to do is group the statements for example: notice the brackets....
"(ID Like '%123' AND Name Like '%Stefan%') OR (ID Like '%456' AND Name Like '%Test%')"
Can this be done using the RowFilter property? doing it on a SQL level is not an option :(
Thanks, Stefan
Comment