473,773 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 17 '05 #1
7 1584
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 17 '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
XXXXXXXXXXXXXXX XXXXXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXX
------------------------------------------------

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: __________

XXXXXXXXXXXXXXX XXX
XXXXXXXXXXXXXXX XXX
XXXXXXXXXXXXXXX XXX
-----------------------------------

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 XXXXXXXXXXXXXXX XX
Harry Jones 544 SantXXXXXXXXXXX XXXXXX
Mary Bond 678 AvenXXXXXXXXXXX XXXXXX
------------------------------------------------

Note: the dragged off and back on portion of the grid becomes visible
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:%2******** ********@tk2msf tngp13.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 17 '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 17 '05 #4
I think so. I'll look at it.

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:eu******** ********@TK2MSF TNGP15.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 17 '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******** ********@TK2MSF TNGP15.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 17 '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******** *************@t wister.nyc.rr.c om...
I think so. I'll look at it.

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:eu******** ********@TK2MSF TNGP15.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 17 '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 17 '05 #8

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

Similar topics

5
2597
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 date, name, address etc) about the selected row in the datagrid... My problem is when I enter a new record in the details tabpage (saves data to database), and go back to the datagrid. Only the data from the PM-table
5
12238
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. The ID is a member of the keys array. I then create a DataView dv over the table, and sort it by Display and ID column (in case of duplicate Display). I then set my DataGrid.DataSource = dv; I then load the datatable with my rows, and this is...
3
4885
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 the best method? Do you have a sample of how to do this?
8
1958
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 button that inserts a new row in the SQL table and then refresh the datagrid.
2
6414
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
2368
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. -- .. http://sf-f.org, weblog and search engine for fans and writers of
4
2285
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 combobox in a datagrid? Any other suggestions/articles on how to implement many-many relations in the frontend (which of course are 2 one-many relations)?
7
1217
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 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...
1
2595
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 cells - they are generated through the odswierz_frekfencje() function (listed below)-
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.