TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ahmet Taha
NA
381
20.3k
cannot display image in data gridview
Mar 9 2021 8:11 AM
hello guys, could anyone fix my problem the image cannot display in datagridview
this is my source code for this
int i = 0;
dataGridView1.Rows.Clear();
cn.Open();
cmd = new SqlCommand("select *from tblNewStudentEntry where status like 'Active'", cn);
dr = cmd.ExecuteReader();
while (dr.Read())
{
i++;
dataGridView1.Rows.Add(i, dr["academicyear"].ToString(), dr["currentglevel"].ToString(), dr["strand"].ToString(), dr["section"].ToString(), dr["lrn"].ToString(), dr["Photo"].ToString(), dr["lname"].ToString(), dr["fname"].ToString(), dr["mname"].ToString(),DateTime.Parse( dr["bdate"].ToString()).ToShortDateString(), dr["age"].ToString(), dr["birthplace"].ToString(), dr["studcontactno"].ToString(), dr["gender"].ToString());
}
dr.Close();
cn.Close();
Reply
Answers (
4
)
MVC - Where to place the <authentication mode= "forms">
insert in database information connection user (iduser ,date , time...