473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Strange VB6 Datagrid Problem

Hoping someone has experienced this before and can offer a solution.

I have an app. that was designed in vb6. The app works with data from a SQL server, retrieves the data using the adodc (MSADODC.OCX) control and displaying data using the datagrid control.(MSDATGRD.OCX)

Have had no problems to date with windows xp,successfully installed on more than 30 pc's all running windows xp, with the exception of 3 windows xp client machines where i recently installed it and the datagrid control just doesnt display any text! I know the adodc recordset has information to display based on a recordcount,the grid loads and is registered correctly... no errors but simply has no text in it?

Any ideas would be greatly appreciated! Many Thanks...
Nov 21 '06 #1
14 10673
Killer42
8,435 Expert 8TB
A missing font on those machines, perhaps?

I supose that depends on what you mean when you say "no text". Is there definitely no data in there, or is it just not visible?
Nov 22 '06 #2
albertw
267 100+
A missing font on those machines, perhaps?

I supose that depends on what you mean when you say "no text". Is there definitely no data in there, or is it just not visible?
according to me, if a font is missing, the program will take ms sans serif as standard
seems more like there is no data
Nov 22 '06 #3
A missing font on those machines, perhaps?

I supose that depends on what you mean when you say "no text". Is there definitely no data in there, or is it just not visible?
Hi there thanks for replying...

There is 100% certain data that the grid should be showing... as the datagrid's datasource is an adodc control linking to a SQL table that has info in it.

And this is confirmed as the app works fine with the identical grid and data request working on all but three Windows XP machines.

The Datagrid loads but shows no recordselectors and the text that should be in the grid isn't visible.

Hope this makes sense!

Initially i thought it might VirusScan which was stealing the text due to buffer overflow protection, i uninstalled the anti-virus software tho and it made no change so im stuck?any ideas? Thanks again
Nov 22 '06 #4
A missing font on those machines, perhaps?

I supose that depends on what you mean when you say "no text". Is there definitely no data in there, or is it just not visible?
Here is a sample screenshot...

[IMG]Pic1[/IMG]
Nov 22 '06 #5
apologies...screenshot missing on last post please view attachment
Attached Images
File Type: jpg screenshot.jpg (18.9 KB, 1480 views)
Nov 22 '06 #6
albertw
267 100+
apologies...screenshot missing on last post please view attachment
hi

do the headers come from your database table?
Nov 22 '06 #7
hi

do the headers come from your database table?
hi thanks for replying...
yes the headers come from the table! its weird the app works everywhere else fine...have tried regitering newer versions of the msdatgrd.ocx and the msadodc.ocx with regsvr32...still does the same! ive even bundled the app with a vs.net 2003 msi setup file...re-installed it...same thing...this still doesnt explain why it works on all other pc's! could it have something to do with their windows user account? have also tried giving "Everyone" read and right permissions in the security options for the installation directory with no results.
Nov 22 '06 #8
albertw
267 100+
hi thanks for replying...
yes the headers come from the table! its weird the app works everywhere else fine...have tried regitering newer versions of the msdatgrd.ocx and the msadodc.ocx with regsvr32...still does the same! ive even bundled the app with a vs.net 2003 msi setup file...re-installed it...same thing...this still doesnt explain why it works on all other pc's! could it have something to do with their windows user account? have also tried giving "Everyone" read and right permissions in the security options for the installation directory with no results.
now i'm going to suggest some things which you already did (maybe)

password protected database?
create a new connectionstring
(very stupid) your datagrid forecolor? or even fontsize?
Nov 23 '06 #9
Lavs
16
Halu... I'm a new member of this forum. I just read your post about the datagrid that doesn't show data from the database. And definitely, I can't answer that question because I myself is a beginner in Visual Basic Programming. I'm here to ask you something... It's all about creating a backup files to a storage device...
Can you please give me a sample code for creating a backup files to any storage device like CD ROMs, Floppy Disk, Flash Drives using Visual Basic 6.0... I am using a database created in MS Access 2003 Version. The Provider I used is the Microsoft JET OLEDB 4.0

By the way, about the datagrid... Are you sure that the recordset has retrieved the data you want? Have you tried checking if the recordset is empty or not?
Mar 6 '07 #10
Hello sirs,
Myself too is facing the same problem. My application is using the datagrid to show some colums from a table. The problem is that it is working fine when I use the Jet 3.51 in connection string. But When I use Jet 4.0 it is not showing the rows. I have checked the record count of the connected record set. It is showing a count so recordset is not empty. I don't know what is happening. My OS is Windows XP service pack 2. Let me know when you get a remedy to this problem.

Thans and Regards

Suresh

Hoping someone has experienced this before and can offer a solution.

I have an app. that was designed in vb6. The app works with data from a SQL server, retrieves the data using the adodc (MSADODC.OCX) control and displaying data using the datagrid control.(MSDATGRD.OCX)

Have had no problems to date with windows xp,successfully installed on more than 30 pc's all running windows xp, with the exception of 3 windows xp client machines where i recently installed it and the datagrid control just doesnt display any text! I know the adodc recordset has information to display based on a recordcount,the grid loads and is registered correctly... no errors but simply has no text in it?

Any ideas would be greatly appreciated! Many Thanks...
Jun 26 '07 #11
Hi there,
I have had the same trouble with datagrid staying empty, but in my case the datacontrol stores no data.
Then I replaced the datacontrol with a ado.recordset-object and set the datasource of the grid to that object.
After all, data is now visible on the grid.
So, if you can, throw the datacontrol out of your application.

Regards,
Ingo

Hello sirs,
Myself too is facing the same problem. My application is using the datagrid to show some colums from a table. The problem is that it is working fine when I use the Jet 3.51 in connection string. But When I use Jet 4.0 it is not showing the rows. I have checked the record count of the connected record set. It is showing a count so recordset is not empty. I don't know what is happening. My OS is Windows XP service pack 2. Let me know when you get a remedy to this problem.

Thans and Regards

Suresh
Aug 23 '07 #12
Hello, guys.
I know there has been quite a while since the last answer to this post was given. I just want to leave some comments of mine, trying to help people in similar situations.
My case was even more rare. I was working perfectly working with ADODB.Recordset objects instead of datacontrols (like kingo3434 said). Using "Set mydatagrid.datasource = myrecordset" syntax. Thus, the records in the datagrid got refreshed just fine. I always used one general (public) ADODB.connection object for my app's queries. One day, trying to create a connection object within my grid data binding procedure, all of a sudden the grid stopped displaying data. I made sure I used the same ConnectionString for the local connection object, as the one from from the general connection object. To make things worse, I "rollbacked" every change, so as to use the public ADODB.connection again instead. And to my surprise that did not get the things the back. My recordset always had records to display, though.

Reading Albertw's advices and misolution's issue on Jet version, I tried to use a different ConnectionString...

The string I used to have was: "PROVIDER=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=" & DBPath & ";Persist Security Info=False;Jet OLEDB:Database Password=password;".

My problem was solved using the following string: "Provider=MSDataShape.1;Data Source=" & BDPath & ";Data Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=password"

I'm not really sure how adding MSDataShape clause could have worked things out (I usually use this string when I need to execute SHAPE queries), because Jet 4 is still mentioned as Data Provider further in the string. But I'm happy it helped me out!!
Jan 3 '12 #13
Killer42
8,435 Expert 8TB
Haha "quite a while" is an understatement; 4½ years since the previous post.

But thanks for giving us the benefit of your experiences - it's all good to have in the archives for people to search.
Jan 4 '12 #14
Thank you for this posting which really helped me a lot. Very strange yet very practical.


@kvikhrov
Feb 24 '14 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Grzegorz Kaczor | last post by:
Hello all, I've got a VERY strange network problem with Win2k Server and .NET. I've got one central server (hub) getting raw binary data (files) from many locations. Both server and clients...
7
by: M O J O | last post by:
Hi, I'm developing a asp.net application and ran into a strange css problem. I want all my links to have a dashed underline and when they are hovered, it must change to a solid line. Sounds...
0
by: Grzegorz Kaczor | last post by:
Hello, I've got a VERY strange network problem with Win2k Server and .NET. I've got one central server (hub) getting raw binary data (files) from many locations. Both server and clients are...
6
by: Stuart Ferguson | last post by:
I currently have a datagrid which is populated from a dataset table however the contents of the table how can i clear the grid and repopulate it ? *** Sent via Developersdex...
0
by: Davewadd | last post by:
I'm having an odd problem with a datagrid in a c# program. The program maintains a schedule of jobs that need to be run. As jobs run, the status and next run date/time info are updated in a SQL...
0
by: Andreas Klemt | last post by:
Hello, how can I easily solve the nested DataGrid problem working correctly with edit / update events? Is there any very simple example? Who has the same problems? Thanks in advance, Andreas
14
by: James Wong | last post by:
Hi! everybody, I'm facing a quite strange download problem. I use the following code to download an XML file to client side: With Response ' clear buffer Call .Clear() ' specify the...
1
by: big DWK | last post by:
Hi- We're having a strange caching problem with an ASP.Net app written in VB.Net on Windows 2003 with all the updates. We have two websevers that use a common sql backend and a session server to...
9
by: Me | last post by:
Hi, I ran into a malloc problem but I can't find the solution. I try to read a file into a variable with malloc like this: BYTE *lcdata; lcdata = malloc(fsize*sizeof(BYTE));
1
by: shaneal | last post by:
Hello all, I've been trying to learn some javascript and I ran into a strange scoping problem I was hoping someone here could help with. I have a fair amount of experience with functional...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.