I have a DataGrid with a picture as link button in one of the columns. The linkbutton automatically gives me a blue linkframe around the picture. How do I get rid of that?

Thanks!
/Daniel

I have a DataGrid with a picture as link button in one of the columns. The linkbutton automatically gives me a blue linkframe around the picture. How do I get rid of that?

Thanks!
/Daniel

Very easy in the img tag just set the border="0" :lol:

Thanks! Yes, you're right, that was too easy.

Glad I could help!

To remove the link frame around a picture in a DataGrid, you can set the BorderStyle property of the ImageColumn to None or use CSS to remove the border around the image.

commented: 20 years too late -4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.