How do I supplant the rows of my datagridview in c #?

0

What I want is to replace in a column that I get from my sql query and that I put in a column of the datagridview and that instead of the url I bring an image icon so that when I click redirect me to the image with the route that I got, but do not show me the route but an icon.

Filling the datagridview:

HistoryBI historyBi = new HistoryBI();
        int UserId = Convert.ToInt32((NederaPage.GetSessionUserId(Page)));
        gdvConceptos.DataSource = historyBi.ConsultarEvidencia(Inicio, Fin);
        gdvConceptos.DataBind();

Aspx of the datagridview

     <!-- gridview  -->
   <div style="margin-top: 150px;">
              <asp:GridView runat="server" id="gdvConceptos"
         CssClass="table table-center"  CellPadding="4" ForeColor="#333333" GridLines="None" Width="850px" >
           <AlternatingRowStyle BackColor="White" />
           <EditRowStyle BackColor="#ffffff" />
           <FooterStyle BackColor="#ffffff" Font-Bold="True" ForeColor="White" />
           <HeaderStyle BackColor="#ffffff" Font-Bold="True" ForeColor="Black" />
           <PagerStyle BackColor="#ffffff" ForeColor="White" HorizontalAlign="Center" />
   </asp:GridView>
 </div>
    
asked by David 23.05.2018 в 19:46
source

0 answers