DataGrid, Windows - Does not refresh. data is in the rows but they are not visible, the rows are sol

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

If the grid is dragged off the screen and back on the data is visible. Tried
a dg.refresh() and Inactivate(). Can I do this by overriding custom base
class OnPaint that my form inherits from? I don't thin it is the backcolor
or something like that because the error does not occur on everyone's
workstation. Could be it be the video card or tied to memory.

Also when I get the error at the office computer if I remote connect to that
computer from home the error does not occur. I was going to try creating a
second grid and populating it with a new datatable which would be a copy of
the other grid's datatable. It seems there would be a lot of things to try.
 
Looking at the computer screen there is a c#.net windows form. It has a few
text boxes and a datagrid, all controls are always visible. When the
datagrid is filled with data, the data is actually in the grid and
underlying data table however the rows are solid blue (see XXXX's below) so
you can't see what is in the rows.

If you click on the title bar of the entire form and drag the entire form so
that half of it is off the desktop, leaving the other half on the desktop,
and then drag that half that was off the desktop back to it's original
position whatever was dragged off the desktip is now visible. For example
here is a sample:

Window:

-----------My .net Window Form-------------
Name: _______ Address _______
Title ________ Age: __________

My Grid
John Smith 123 Main Street NY, NY 10011
Harry Jones 544 Santa Monica Blvd. LA, CA 10210
Mary Bond 678 Avenue A NY, NY 19975
------------------------------------------------

The three rows of the grid cannot be seen. They appear as such?

-----------My .net Window Form-------------
Name: _______ Address _______
Title ________ Age: __________

My Grid
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
------------------------------------------------

Where X is a solid blue color:

Now if you drag the grid left halfway off the desktop so it looks like this:

y .net Window Form-------------
Address _______
Age: __________

XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
-----------------------------------

Then you drag it back to it's original location you see this:

-----------My .net Window Form-------------
Name: _______ Address _______
Title ________ Age: __________

My Grid
John Smith 123 Main XXXXXXXXXXXXXXXXX
Harry Jones 544 SantXXXXXXXXXXXXXXXXX
Mary Bond 678 AvenXXXXXXXXXXXXXXXXX
 
Back
Top