Results 1 to 3 of 3

Thread: default image on DGV cell

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2013
    Location
    Newcastle, Australia
    Posts
    158

    default image on DGV cell

    I have a DGV that is connected to a dataset from a inbuilt vb database

    I have 3 columns that are images i have set the default image for these in the edit columns box but when i load the form the default image in these 3 columns
    are still the standard red cross images not my chosen default images


    Each row has 5 columns here is a lay out just incase it helps someone explain a answer for me

    1 = image
    2 = varchar
    3 = varchar
    4 = image
    5 = image


    So how can i set these 3 image Columns default image.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: default image on DGV cell

    Black mark against your name for not taking 30 seconds to read the documentation:
    Quote Originally Posted by MSDN
    The Image property specifies an image that is displayed in cells with no values when the column is not data-bound and the cell's ValueIsIcon property is set to false. For a data-bound column whose cells do not have an associated image, a standard error graphic is displayed.
    That said, I just tried setting the Image property of image columns in an unbound grid (both in the designer and in code) and the same thing happens, so either there's something I'm missing or the documentation is lying.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2013
    Location
    Newcastle, Australia
    Posts
    158

    Re: default image on DGV cell

    I believe it may be a BUG lol

    I did read the documentation i just thought the whole part of


    For a data-bound column whose cells do not have an associated image, a standard error graphic is displayed.
    meant you could associate a image to the cell some how

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width