Thanks for your reply ptaylor965, !!
Well, first of all, I made a mistake about the component, Its a gridview; second of all, on which event do I put these codes? consider that my gridview its binded by design with a objectdatasource, and I can't change that.
Thanks again!!
Omar
for Dataview use If dataview.count = 0 then
button1.visible = False
else
button1.visible = True
End If
or
for datatables use If datatable.rows.count = 0 then
button1.visible = False
else
button1.visible = True
End If
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
Offline 62 posts
since Aug 2007