473,324 Members | 2,531 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,324 software developers and data experts.

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

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.
Nov 21 '05 #1
7 1201
Richard,

I am sorry, I have not the idea that I completely understand you. Please
tell first the problem, before you start with suggesting all kind of
solutions.

It can be the famous mcAfee 8.0 problem, however tell first something more
about the problem (without solutions).

By instance is your datagrid normally on your form, now I get the idea that
the user can drag that to somewhere, what is not a kind of standard
application.

I hope this helps something to come to a solution.

Cor
Nov 21 '05 #2
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
------------------------------------------------

Note: the dragged off and back on portion of the grid becomes visible
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Richard,

I am sorry, I have not the idea that I completely understand you. Please
tell first the problem, before you start with suggesting all kind of
solutions.

It can be the famous mcAfee 8.0 problem, however tell first something more
about the problem (without solutions).

By instance is your datagrid normally on your form, now I get the idea that the user can drag that to somewhere, what is not a kind of standard
application.

I hope this helps something to come to a solution.

Cor

Nov 21 '05 #3
Richard,

Are you the guy from this thread, who never answered again?

http://groups.google.com/group/micro...d5756c475218bf

A little bit senseless to take time in problems if you are not answering or
look at those.

Cor
Nov 21 '05 #4
I think so. I'll look at it.

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eu****************@TK2MSFTNGP15.phx.gbl...
Richard,

Are you the guy from this thread, who never answered again?

http://groups.google.com/group/micro...d5756c475218bf
A little bit senseless to take time in problems if you are not answering or look at those.

Cor

Nov 21 '05 #5
I set the BackColor, bind to datatable and refresh. The BackColor looked OK
in a breakpoint. I don't think it is the backcolor but will test it again.

It does not happen when I remote connect to the workstation from home.
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eu****************@TK2MSFTNGP15.phx.gbl...
Richard,

Are you the guy from this thread, who never answered again?

http://groups.google.com/group/micro...d5756c475218bf
A little bit senseless to take time in problems if you are not answering or look at those.

Cor

Nov 21 '05 #6
I read the google site. It was me. Sorry about getting back to you but I'm
working on a major software development project for a major financial
institution on Wall St. It was not a high priority but is now. I have good
news though, I just saved 10% on my car insurance :) OK, so it's a wonderful
day. I was thinking of using a second grid as a test, also override OnPaint,
etc. Seems like a lot of possibilities.
"Richard" <a@b.com> wrote in message
news:vm*********************@twister.nyc.rr.com...
I think so. I'll look at it.

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eu****************@TK2MSFTNGP15.phx.gbl...
Richard,

Are you the guy from this thread, who never answered again?

http://groups.google.com/group/micro...d5756c475218bf

A little bit senseless to take time in problems if you are not answering

or
look at those.

Cor


Nov 21 '05 #7
Richard,

In every situation when your program is doing something is situation A
however not in situation B, than it has to do with the Operating System (and
all what is around it as framework and drivers) or/and the hardware.

It is than seldom a language or program problem.

I hope this helps,

Cor
Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order...
7
by: Richard | last post by:
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...
5
by: John Richardson | last post by:
I've been bothered for some time about my DataGrid not populating my rows very quickly. I have about 10K rows loading into the grid. I create a datatable dt with 2 columns, an ID and a display. ...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
8
by: Inigo Jimenez | last post by:
I have an ASP .net web application installed in a Windows 2003 server. This web application has a webform that has a Datagrid. This Datagrid is filled with the data of a SQL table. I have a...
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
4
by: Jan Nielsen | last post by:
Hi all I'm a former Access developer who would like to implement a many-to-many relation in about the same way you do in Access: With a subform and a combo box. Is it possible to use a...
13
by: pmcguire | last post by:
I have a DataGrid control for which I have also created several new extended DataGridColumnStyles. They behave pretty nicely, but I can't figure out how to implement Selected Item formatting for...
1
by: sp | last post by:
Hello I have a problem with the refresh performance in datagrid – when datagrid is being shown it is so slow that I can see one by one cells is drawn -datagrid contains about 35x40 of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.