Show datalist items

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've got a datalist with 5 labels and 5 textboxes.
I get data from a database and fill in the textboxes.
When there is no data I want to check on it and make the labels invisible or
something like that.
I want this because I want a compact list, so the labels aren't show when
there is no data in the textbox corresponding to the label.

I hope I explained it well?

thanks for any help

Filip
 
Filip,

You need to databind label's Visible property to the expression checking if
any data is coming to the textbox. See MSDN Library topics on databinding.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top