Here Mudassar Ahmed Khan has explained with an example, how to upload, insert and display Images using the Path stored in database in DataGridView in Windows Forms (WinForms) Application using C# and VB.Net.
Image files will be uploaded using OpenFileDialog and then will be saved into a Folder (Directory) on disk. The Path of the saved files will be inserted into SQL Server Database Table.
The saved (inserted) Image files will be retrieved and displayed in DataGridView in Windows Application using C# and VB.Net.
↧