I have the following problem. I just learned how to use datalist with repeatcolumns. The thing is that when i fill the Datalist with information from the DB there are some columns that dont have values in some rows, but do in others .. for example a second phone number. How can i show the label for that second phone number depending if there is number or not . for example:
Company x
phone1 : 555-45612
Phone2: 123-456
Company y
Phone1 : 555-654987
Compaby w
Phone1: 123-456789
Phone2: 123-458755
The problem the way i see it is the template.. its always hardcoded i thought it would be an easy If container.DataI tem(column) is not null then show the phone2 label but i cant seem to do it
Im using VB.net
Company x
phone1 : 555-45612
Phone2: 123-456
Company y
Phone1 : 555-654987
Compaby w
Phone1: 123-456789
Phone2: 123-458755
The problem the way i see it is the template.. its always hardcoded i thought it would be an easy If container.DataI tem(column) is not null then show the phone2 label but i cant seem to do it
Im using VB.net