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
Guest User
Tech Writer
39
11.3k
How to show image on DataGridView?
Feb 5 2018 4:23 AM
My sql procedure is:
ALTER
proc [dbo].[sp_Load_GridView]
AS
BEGIN
SET
NOCOUNT
ON
;
SELECT
Employee_ID,Employee_Name, Emp_Photo
FROM
Employee_Information
END
but image not showing in grid,
Here is my code:
SqlCommand cmd =
new
SqlCommand(
"sp_Load_GridView"
, con);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter sda =
new
SqlDataAdapter(cmd);
DataTable dt =
new
DataTable();
try
{
sda.Fill(dt);
dataGridView1.DataSource = dt;
}
catch
(SqlException ex)
{
MessageBox.Show(ex.Message)
}
finally
{
con.Close();
con.Dispose();
}
Reply
Answers (
3
)
Show image in picture box clicked from datagridview
c# Learning Queries