I am using datagridview in vb.net 2.0
I want to execute 2 queries.
in the first query ---
1. Can anyone tell how to check that whether the query is fetching records from the database or not.Like i want to put a condition that
if query is returning record then do this else do this.How to accomplish it?????
Another Problem---
I am willing to execute 2 queries.like....
Olecom.commandtext="select * from tablename1"
if it reurns any result then fill the record in datagridview
else dont
after that second query should be executed
Olecom.commandtext="select * from tablename2"
if it returns any result then place those record after the first query returned results in the same grid view.if the first query does not return any results then place these on top....
How to accomplish it????
I am new to vb.net...Facing a lot of problems.
Any sort of help will be appreciated..............
It is very important .Please help.I need to submit early....