Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Showing A Picture in the Grid
posted

How do i show an image in the grid?  I looked the different columntypes and none of them represent holding an image.

Parents
No Data
Reply
  • 45
    posted
    I do so simply,
     
    In my Query I'm creating HTML Tag 
     
    Select ID, '<img src="../SisImagen/Rojo.gif" />' as [Imagen] , CI
    From Persona
    ___________________________________________
    ID       Imagen                                          CI
    15805 <img src="../SisImagen/Rojo.gif" />  001020
    15782 <img src="../SisImagen/Rojo.gif" />  001012
    15796 <img src="../SisImagen/Rojo.gif" />  001017
     
     
    and in the any event:
     
    Me.uwgrdResumenParcial.DataSource = dtsParcial.Tables("Persona").DefaultView
    Me.uwgrdResumenParcial.DataBind()
Children
No Data