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 / Languages / C# / June 2007

Tip: Looking for answers? Try searching our database.

DataGridView with blank cells?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Max - 12 Jun 2007 15:16 GMT
Hello,

  I have a datagridview object on my form along with some other controls. When the application runs, the datagridview is populated
with data from a database. Although the right number of records is displayed, all the cells in each record are blank. Any idea why?

Thanks,
Max.
gary@garyshort.org - 12 Jun 2007 15:49 GMT
> Hello,
>
[quoted text clipped - 3 lines]
> Thanks,
> Max.

Hello,

I take it you have checked the database and there is actually data
there?

Cheers,
Gary
http://www.garyshort.org
Max - 12 Jun 2007 17:43 GMT
Yes, there is data, and I fixed the problem. What I did was, I created columns in the dgv object and when I set the datasource to a
table the table columns appended to the ones in the dgv even though they had the same name. Obviously I couldn't see these extra
columns in my workspace area but once I enlarged the dgv I realized what was wrong. Removed the extra columns and now everything is
fine.

Thanks,
Max.

>> Hello,
>>
[quoted text clipped - 14 lines]
> Gary
> http://www.garyshort.org
Dave - 12 Jun 2007 21:19 GMT
Hi,

How do you populate your dataGridView? Sp or select statement?
Does your Query returns any results? Otherwise you get an empty view.

David

> Hello,
>
[quoted text clipped - 5 lines]
> Thanks,
> Max.

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.