Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7052669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:24:42+00:00 2026-05-28T03:24:42+00:00

This is May Sample Code in ASP.NET How Can I Add A similar Image

  • 0

This is May Sample Code in ASP.NET How Can I Add A similar Image Column To All Rows After Binding

        gridview1.DataSource = MB.GetTest();
        gridview1.DataBind();

And My ASPX Page:

<asp:GridView  ID="gridview1" runat="server">
        </asp:GridView>

I really need irt, thanks.

Update

<asp:GridView ID="gridview1" runat="server">
            <Columns>
                <asp:ImageField>
                </asp:ImageField>
            </Columns>
        </asp:GridView>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:24:42+00:00Added an answer on May 28, 2026 at 3:24 am

    hi i would like to explain you a little there is a property called AutoGenerateColumns="false" you need to set this as false

    and generate columns in your aspx and bind them Refer this Site

      <asp:GridView ID="GridView1" Runat="server" 
      DataSource='<%# GetData() %>' AutoGenerateColumns="False" 
      BorderWidth="1px" BackColor="White" CellPadding="3" BorderStyle="None" 
      BorderColor="#CCCCCC" Font-Names="Arial">
        <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
        <PagerStyle ForeColor="#000066" HorizontalAlign="Left" 
          BackColor="White"></PagerStyle>
        <HeaderStyle ForeColor="White" Font-Bold="True" 
          BackColor="#006699"></HeaderStyle>
        <Columns>
            <asp:BoundField HeaderText="Picutre ID" DataField="PictureID">
                <ItemStyle HorizontalAlign="Center" 
                  VerticalAlign="Middle"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField HeaderText="Title" DataField="Title"></asp:BoundField>
            <asp:BoundField HeaderText="Date Added" DataField="DateAdded" 
              DataFormatString="{0:d}">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:ImageField DataImageUrlField="PictureURL"></asp:ImageField>
        </Columns>
        <SelectedRowStyle ForeColor="White" Font-Bold="True" 
           BackColor="#669999"></SelectedRowStyle>
        <RowStyle ForeColor="#000066"></RowStyle>
    </asp:GridView>
    

    There you go with Image column above

    <asp:ImageField DataImageUrlField="PictureURL"></asp:ImageField>

    MSDN is another best site to refer…
    above code is taken from MSDN website.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope someone can help with solution to this problem? Currently my ASP.Net MVC
This may be a little hard to describe since I don't have a sample.
This may be a simple fix - but I'm trying to sum together all
This may be a simple question though can´t figure out how to do it.
This may be a simple answer, but I'm trying to add a dom-created element
I have an asp.net web service project. This project contains a few classes declared
I'm trying to add some JQuery to an ASP.Net User Control to check to
How can I implement background processing queues in my ASP.NET MVC web app? While
We are using asp.net 3.5 with c#.We have to make an powerful mailer module.This
Similar to technologies like ASP.NET, PHP, JSP and some other web languages which run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.