RocAFella2007
Technical User
Hi, I require help with an SQL statement please. I have information showing in a datagrid, the sql for that is pretty simple as it is:
"Select * from Orders", conn
Now, there is a column in the datagrid which is called preorders, now what I need help with is where the preorder column = ‘Yes’ I want that row to be another colour, what is the best way to do this? Im sure the following is something close to it, however wouldn’t this only show the information where the column is ‘Yes’? I want to show all the information in the datagrid, like the SQL statement above. But ONLY where it says ‘Yes’ in the column I would prefer if that row was another colour.
"Select * from Orders where preorder = ‘Yes’", conn
Thanks.
"Select * from Orders", conn
Now, there is a column in the datagrid which is called preorders, now what I need help with is where the preorder column = ‘Yes’ I want that row to be another colour, what is the best way to do this? Im sure the following is something close to it, however wouldn’t this only show the information where the column is ‘Yes’? I want to show all the information in the datagrid, like the SQL statement above. But ONLY where it says ‘Yes’ in the column I would prefer if that row was another colour.
"Select * from Orders where preorder = ‘Yes’", conn
Thanks.