Doesn anyone know a easy way to find out if a DataReader is empty (has no records)??
I have looked through the methods for the DataGrid object, but couldn't find anything that made sense.
What I want to do:
if the DataGrid has no records, I want to display a simple message, like "No records".
If it does have records, dipslay them.
PS. I use while (DataReader.Read()) to loop through the DataReader.
Anyone?




Reply With Quote