Skip to content

How to display image while retrieve data from database?

Ankit Agarwal

Ankit Agarwal

Asked Sep 9, 2013, 1:12 AM EDT1 answer
Share
LinkedInX
Hello,

I am using this code for display image while retrieve data from database to datagridview in C# .net windows application.:-

Java
   	pictureBox1.Visible = true; // it's a swf loading image.
            dataGridView1.ReadOnly = true;
            SqlConnection con = new SqlConnection(cnString1);
            con.Open();
            dadapter = new SqlDataAdapter("select * from BAN_ItemDataMaster where [Signal Code]='HOME'", con);
            data = new DataTable();
            dadapter.Fill(data);
            dataGridView1.DataSource = data;
            con.Close();
pictureBox1.Visible = false;

but my code it's not properly run.
my image did not display.

I want to display image while database load.

Please help me, How could be possible?

Thanks in advance.

Ankit Agarwal
Software Engineer

1 Answer

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

  • Suthish Nair
    0
    Check Our Recommended Solutions just below your thread
    0