Connecting Tech Pros Worldwide Forums | Help | Site Map

Strange Behavior With Gridview Control...

Newbie
 
Join Date: Nov 2008
Posts: 5
#1: Oct 26 '09
Hi,

I am having a strange problem in the attached project... I will be very grateful if you people help me.

In the attached project when I load the files in datatable and then try to add images without using the "Dispose" method the datagridview does not showing it correctly and when I load images with "Dispose" method then everything is showing correctly but the files are being lock and i am unable rename them...

Hope i explain the problem correctly...

Thanks in advance for your help.
Attached Files
File Type: zip ImgTest.zip (151.1 KB, 4 views)

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,167
#2: Oct 26 '09

re: Strange Behavior With Gridview Control...


Are you stuck only using .NET1.x?
Newbie
 
Join Date: Nov 2008
Posts: 5
#3: Oct 26 '09

re: Strange Behavior With Gridview Control...


thanks for reply... No i am using the latest version of vb.net and this app is develop in vs2008
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,167
#4: 4 Weeks Ago

re: Strange Behavior With Gridview Control...


So then why are you using a deprecated control?
Newbie
 
Join Date: Nov 2008
Posts: 5
#5: 4 Weeks Ago

re: Strange Behavior With Gridview Control...


Sorry i did not get your point?
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,167
#6: 4 Weeks Ago

re: Strange Behavior With Gridview Control...


Ok after looking through your code you are using the DataGridView.
I should have known from the start you mean DataGridView since GridView is a web-only control.

When I run your code, both "Load Images" and "Load Images without dispose" work just fine?
Reply

Tags
datagridview, images