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
Himesh Soni
NA
1
1.1k
how to dishplay the image in datagrid of wpf application?
Mar 26 2014 10:15 AM
http://msdotnetninja.blogspot.in/2013/12/wpf-browse-image-with-openfiledialog.html
i am able to upload a image through the above link now i want to retrive that uploded image to my data gried of wpf appliction i am using this code but that not working
<DataGrid AutoGenerateColumns="False" Height="248" HorizontalAlignment="Left" Margin="12,51,0,0" Name="dataGrid1" VerticalAlignment="Top" Width="479" Background="White" >
<DataGrid.Columns>
<DataGridTextColumn Header="Id" Binding="{Binding Path=Id}" Width="80"/>
<DataGridTextColumn Header="ImagePath" Binding="{Binding Path=ImagePath}" Width="80" />
<DataGridTemplateColumn Header="Image" Width="80" IsReadOnly="True" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Image Source="{Binding Path=ImageInBytes}" Width="50" Height="50" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
Attachment:
imagesaveindatabase.rar
Reply
Answers (
1
)
Advantages of WPF
WPF vs Win Forms