A Repeater control doesn't have columns. It has HTML and Controls in it. Put
the Repeater in a Panel, and your "Zero Records" message into another panel.
When you get nothing, make the other Panel visible, and the Repeater
invisible, and vice versa.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"laurence chang" <la************@rogers.com> wrote in message
news:eO*************@TK2MSFTNGP15.phx.gbl...
I'm using a repeater to display a query result from sql table. I bind
the repeater to a sqldatareader. I set repeater's template to a table. I
can display query result very well, but some time the query return
nothing, so I want add a condition for repeater, when query return null
I just display the head of table and give user a message. How can i
realize it? Thanks ahead.
Laurence
*** Sent via Developersdex http://www.developersdex.com ***