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
Goran Bibic
482
2.9k
198.1k
Datagrid selection changed for image?
Apr 6 2018 4:16 AM
Problem is selection cahnged for images in datagrid...
private
void
roba_uslugeDataGridView_SelectionChanged(object sender, EventArgs e)
{
if
(roba_uslugeDataGridView.SelectedRows.Count > 0)
{
string id = roba_uslugeDataGridView.SelectedRows[0].Cells[0].Value.ToString();
string sifra = roba_uslugeDataGridView.SelectedRows[0].Cells[1].Value.ToString();
string naziv = roba_uslugeDataGridView.SelectedRows[0].Cells[2].Value.ToString();
dataPictureBox.Image = null;
idTextBox.Text = id;
sifraTextBox.Text = sifra;
imeTextBox.Text = naziv;
byte[] img_arr = null;
MemoryStream ms =
new
MemoryStream();
dataPictureBox.Image.Save(ms, dataPictureBox.Image.RawFormat);
img_arr = ms.GetBuffer();
}
}
Reply
Answers (
11
)
How to move tables from one db to another db using Entity
Create dinamicly button in couple columns c#