Board index » Visual Studio » How to Update a Column of DataGrid FAST?
|
mosaic
|
How to Update a Column of DataGrid FAST?
Visual Studio112
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? - |
