[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference abbott::visual_basic

Title:Microsoft Visual Basic
Moderator:TAMARA::DFEDOR::fedor
Created:Thu May 02 1991
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2565
Total number of notes:10453

2544.0. "Grid does not display data ..." by CHEFS::geyzuh.reo.dec.com::Steve_Marshall () Wed Apr 30 1997 08:06

Folks,

	I have a strange problem that seems to appear on on PC only. I 
	think that it may be something to do with the setup of the PC but
	I am not totally sure of where to start looking.

	I have a VB application that uses a number of screens. On one of
	those screens is a grid that displays the results of a query 
	against a database.

	On the PC that displays the error, the grid is correctly sized
	to hold the data (rows of the grid), but no data is displayed
	in the grid. If the user clicks on the OK button (which takes the 
	displayed results and creates a table holding the data), then the
	data is correctly processed and stored in the table. The data for
	the table is retrieved from the grid (as the user can selectively
	remove lines from the displayed results), which means that the 
	grid must actually be holding the data.

	This problem is on only one particular screen, and other grids in 
	the same application which are handled in the same way, function
	perfectly normally.


	Any ideas, because I have run out!

		Steve.



T.RTitleUserPersonal
Name
DateLines
2544.1Font problem?WNPV01::AMESW1GUUWed Apr 30 1997 10:0110
Steve;

This is a SWAG.

Are the fonts too big for the grid cells?  Also look at large vs small 
windows display fonts.

/don


2544.2White on White is White!CHEFS::geyzuh.reo.dec.com::Steve_MarshallWed Apr 30 1997 13:1614
	I knew this one was going to be something stupid. The user had
	modified the appearance panel on the PC properties screen and set
	the foreground (text) property of 3D objects to be white. The one
	object where I had not forced the foreground color to something
	in my control was this damn grid. The text was being displayed in
	white on a grid with a white background.

	Once I set the forground colour of the grid to be black the
	text is visible.


	Steve.