How to Update a Column of DataGrid FAST?

From: Bil Muh (bilmuhalper_at_hotmail.com_REMOVE_THIS_PART)
Date: 02/17/05


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?



Relevant Pages

  • Haow to Update a Column of DataGrid FAST?
    ... I am developing an application by using VC++ .NET v2003 at Windows Forms ... In my application, I have two threads, which are working background. ... double values should be shown on the three different data grid depending on ... I can change the Value columns in all datagrids but they ...
    (microsoft.public.dotnet.languages.vc)
  • Diffences between DataGrids in Windows Forms and Asp.Net
    ... I am trying to find the differences between handling of DataGrids in Windows ... They are completely different in how you bind to them, get number of rows, ...
    (microsoft.public.dotnet.languages.vb)
  • example on how to edit excel with a datagrid?
    ... an Excel spreadsheet's information and then showed it in a windows ... Most of the online examples for datagrids are for webforms, ... false values) show as a checkbox column in the datagrid. ...
    (microsoft.public.dotnet.framework.windowsforms)