473,486 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 977

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

Similar topics

3
5513
by: Martijn Leine | last post by:
I am using an errorprovider and a datagrid component on a form. I use the errorprovider to display error hints in the grid, in the case the entered data by the user is checked and not found Ok....
0
1092
by: R A | last post by:
Hi If I set the RowHeaderVisible = false and I have a checkboxes columns in my datagrid - The first 2 columns are textbox and the rest are checkbox. No if I scroll to the left and then to the...
1
1709
by: RA | last post by:
Hi I wonder if anyone tried this or know if it has been fixed. I am using vs .net 1.1 and have a windows form. In the form I have a DataGrid with the following format: 3 first Columns are of...
2
4265
by: Juan | last post by:
After enabling a datagrid control the scrollbar stays disabled even when i have more rows that those being displayed. It only starts working when i sort the datagrid with any displayed column... ...
3
5020
by: Ryan Liu | last post by:
Hi there, I got a NullReferenceException when delete last row in a datagrid. I had hard time to solve since it does not occur in my own code. I put a datagrid in my inherited user control,...
3
1194
by: | last post by:
Hi, I have come across a situation which appears to be a BUG with the DataGrid control (asp:datagrid) Following the application of a fliter on a PostBack, it seems the total number of items...
1
1331
by: Kepler | last post by:
I'm fighting a really strange bug that involves both a DataGrid and a Repeater disappearing on postback. The strange thing is that I've distilled the problem down to a simple program, that...
4
1995
by: Mark Waser | last post by:
I've discovered a very odd bug when attempting to put a dropdown list in a datagrid. In the page PreRender step, the selected index of the datagrid is successfully set during databinding. Yet,...
2
1309
by: Brad Shook | last post by:
First of all thinks to Cor Ligthert for helping me with this last week. If you wild like to read Cor's comments please refer to the posting from 10/14/2004 and 8:48AM "Help with Advanced...
1
1116
by: Chris | last post by:
Hey, I have a DataGrid that allows for a combobox in a column through a inherited DataGridColumnStyle and a inherited ComboBox. I have 3 of these columns in a row. The overall problem is that...
0
7099
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
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7175
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...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
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,...
1
4864
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
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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 ...
0
262
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...

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.