A Aidy Jan 19, 2007 #2 What structure are you getting your data back in? For a SqlDataReader use the HasRows property. For a DataTable use Rows.Count.
What structure are you getting your data back in? For a SqlDataReader use the HasRows property. For a DataTable use Rows.Count.
J John Timney \(MVP\) Jan 19, 2007 #3 EmptyDataTemplate can be useful in the GridView when there are no rows, otherwise you can normally use ds.Tables("myTable").Rows.Count -- -- Regards John Timney (MVP) VISIT MY WEBSITE: http://www.johntimney.com http://www.johntimney.com/blog
EmptyDataTemplate can be useful in the GridView when there are no rows, otherwise you can normally use ds.Tables("myTable").Rows.Count -- -- Regards John Timney (MVP) VISIT MY WEBSITE: http://www.johntimney.com http://www.johntimney.com/blog