G
Guest
What is a good way to check for a gridview or a datasource not having any rows?
If my gridview does not have any rows i want to display a message saying the
recordset is empty.
I'm doing it now by setting the message visible = true on page load
and set it to false on
if (e.Row.RowType == DataControlRowType.DataRow)
this.Label1.Visible = false;
Meaning it get s set to false on each row. I'd like a better way.
Thanks
KES
--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)
kes
If my gridview does not have any rows i want to display a message saying the
recordset is empty.
I'm doing it now by setting the message visible = true on page load
and set it to false on
if (e.Row.RowType == DataControlRowType.DataRow)
this.Label1.Visible = false;
Meaning it get s set to false on each row. I'd like a better way.
Thanks
KES
--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)
kes