Skip to content

Need a code for datagridview background image

anji marothu

anji marothu

Asked Jun 7, 2013, 2:32 AM EDT2 answers
Share
LinkedInX
hi all....
In my application i fill data in Gridview. Now i want to assign BackGroundImage to this Gridview. This image is any image such as jpg which i put in  BIN->DEBUG-> Images Folder of my application

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    Hi Anji,

    You just need to add BackImageUrl property. See the example below
    -------------------------------------------------------------------------
    <asp:GridView ID="gvShowFiles" runat="server" AutoGenerateColumns="True" 
     
    DataSourceID="SqlDataSource1" BackImageUrl="~/Images/confirm.png">

    -------------------------------------------------------------------------



    Happy Coding :)


    Mark this as answer if it helps.

    Thanks.
    0
  • anji marothu
    0
    thanks sunny.. but i want code for windows application. datagridview backgroun image
    0