Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2006

Tip: Looking for answers? Try searching our database.

DataGridView crash when selecting Data Source

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Ebersole - 29 Sep 2006 21:09 GMT
I have one Windows project that crashed on me when I tried to select the data
source on a DataGridView control after adding it to my project.  Since then,
I can no longer set any data source fields on any controls anywhere in that
project.  I can do it just fine in other projects on the same machine.

What can I do to fix this project, short of copying everything into a new one?
Signature

Jon Ebersole
Microsoft Certified Solution Developer

Jon Ebersole - 30 Sep 2006 15:55 GMT
Well, I finally figured it out.  This problem occurs when one of your
DataSources in your project is corrupt.  Do the following to find out which
DataSource is corrupt and then recreate it...

- In both VB and C#, select your project in the Solution Explorer and
select Show All Files.
- In VB, Expand the My Project section, in C# Expand the Properties section
- Expand the DataSources section
- Right click on each of your project DataSources and select Exclude from
Project
- Try using a DataGridView or other controls that use the DataSource
options.  They should work at this point.
- Slowly start including your DataSources again, testing after adding each
one individually.  When the solution crashes, you know which one(s) are
corrupt.  You can then recreate that DataSource as necessary.

<b>NOTE: Make sure you SAVE your project after selecing to include each
DataSource.  If you don't, when the project crashes the IDE, you will have to
redo all of the steps you did prior = Not fun.</b>

I hope this helps others. Good luck!
Signature

Jon Ebersole
Microsoft Certified Solution Developer

> I have one Windows project that crashed on me when I tried to select the data
> source on a DataGridView control after adding it to my project.  Since then,
> I can no longer set any data source fields on any controls anywhere in that
> project.  I can do it just fine in other projects on the same machine.
>
> What can I do to fix this project, short of copying everything into a new one?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.