473,480 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Windows DataGrid Problem,... "BUG"??

I'm making a windows project...
I have a datagrid with one checkbox collumn.
When I check the checkbox (sometimes) the grid redraws and
stays white with a Red X in the middle and the application
freze...
I think I have to make a datagrid "refresh" before and
after de check...

Here is the code
************************************************** *******
bool bEstado;
DataGrid.HitTestInfo hti = dtgPerfilModulo.HitTest(e.X,
e.Y);

try
{
if(hti.Column == 1 && hti.Type ==
System.Windows.Forms.DataGrid.HitTestType.Cell)
{

//Cahnge the state
bEstado=(bool)dtgPerfilModulo[hti.Row,hti.Column];
dtgPerfilModulo[hti.Row,hti.Column] =! bEstado;

//This don't do anything, I tryied without this line to!
dtgPerfilModulo.Update();
}
************************************************** ********

Thanks for your help,
BP

Nov 15 '05 #1
0 910

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

Similar topics

0
1838
by: Dave | last post by:
Hi everyone, (I already posted this to the VS.NET IDE news group without any responses, so I'm attempting one more time in this group) The issue I'm having is occuring in the IDE of VS.NET...
0
1287
by: mhanrahan | last post by:
Hi, I am experiencing a "bug" (maybe I am missing a setting or something) with a Windows MDI application which I am building in c# 2.0. I am doing the following: Create an MDI parent add a...
1
1146
by: Bernardo | last post by:
I'm making a windows project... I have a datagrid with one checkbox collumn. When I check the checkbox (sometimes) the grid redraws and stays white with a Red X in the middle and the application...
2
1596
by: Juan Pedro Gonzalez | last post by:
I am a bit unsure about this "Effect"... My code: Public Sub Main() Application.EnableVisualStyles() Application.DoEvents() Dim myMainForm As New FormularioPrincipal Dim mySplash As New...
9
3435
by: Codex Twin | last post by:
I am re-sending this in the hope that it might illicit a response. I have a corporate client who forces their workstations to get the proxy server details using an automatic proxy discovery script....
26
2107
by: Patient Guy | last post by:
The code below shows the familiar way of restricting a function to be a method of a constructed object: function aConstructor(arg) { if (typeof(arg) == "undefined") return (null);...
8
2017
by: gw7rib | last post by:
I've been bitten twice now by the same bug, and so I thought I would draw it to people's attention to try to save others the problems I've had. The bug arises when you copy code from a destructor...
5
1201
by: stdazi | last post by:
Hello, Yesterday, I was at a programming competition. We programmed on Linux liveCD's and Python was one of the allowed languages (among C and Java). I cared just about the algorithmic approach...
4
4537
by: Sin Jeong-hun | last post by:
I don't get the message so it's hard to debug that, but some of my clients report that they get "The underlying connection was closed unexpectedly" exception. According to this site (http://...
0
7051
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
7054
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,...
0
7097
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...
1
6750
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...
1
4794
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...
0
4493
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...
0
2993
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1307
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 ...
1
567
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.