How to Update a Column of DataGrid FAST?
From: Bil Muh (bilmuhalper_at_hotmail.com_REMOVE_THIS_PART)
Date: 02/17/05
- Next message: Simon Trew: "Re: ATL-COM: return pointer to instance"
- Previous message: Norm Dresner: "Re: how to quickly initilize a struct component?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Feb 2005 03:37:03 -0800
Hello Developers,
I am developing an application by using VC++ .NET v2003 at Windows Forms
.NET. In my application, I have two threads, which are working background.
They receive double values from two different Sockets. Then these received
double values should be shown on the three different data grid depending on
double-value type. GroupA values at DataGrid1, GroupB values at DataGrid2 and
GroupC values at DataGrid3. There are four columns -Order, Name, Value and
Unit- in the datagrids and I want to change only values as quickly as
possible.
During my tests, I can change the Value columns in all datagrids but they
are so slow, sometimes values are freezing. I tried to organize the threads
with several Thread::Sleep(..) s.
I change the Value Column with the below code in a "for" loop:
dataTable1->Rows->Item[i]->Item[S"Value"] = __box(
static_cast<Double>(darrFCSValues[ IndexNo ]) );
How can I populate these data on the data-grids faster?
- Next message: Simon Trew: "Re: ATL-COM: return pointer to instance"
- Previous message: Norm Dresner: "Re: how to quickly initilize a struct component?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|