How To Populate Datagridview With Static Data

How To Populate Datagridview With Static Data.

How To Populate Datagridview With Static Data

This Tutorial Shows How To Populate Datagridview With Static Data

Visual Basic .NET SOURCE CODE


    Private Property image1 As Image

    Private Property image2 As Image

    Private Property image3 As Image

        image1 = Image.FromFile("C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg")
        DataGridView1.Rows.Add("Ann", "Magda", "Female", "USA", "C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg", image1)
        image2 = Image.FromFile("C:\Users\Public\Pictures\Sample Pictures\Desert.jpg")
        DataGridView1.Rows.Add("Johnathan", "Jimmy", "Male", "Canada", "C:\Users\Public\Pictures\Sample Pictures\Desert.jpg", image2)
        image3 = Image.FromFile("C:\Users\Public\Pictures\Sample Pictures\Hydrangeas.jpg")
        DataGridView1.Rows.Add("Joel", "Mary", "Male", "United Kingdom", "C:\Users\Public\Pictures\Sample Pictures\Hydrangeas.jpg", image3)

Leave a Reply

Your email address will not be published. Required fields are marked *