There is a linear array of data, there is a DataTable, BindingSource and DataGridView.

for (char x = 1; x < fuel->Columns->Count - 1; x++) { for (char y = 1; y < fuel->Rows->Count - 1; y++) { i = rx_msg[1].Data[c]; // i = 14.7 * 128 / i; //' convert to afr // i = System.Math.Round(i, 1) //'round to 1 dec pl fuel->Rows[y]->ItemArray[x] = i; DebugBox->Text += fuel->Rows[y]->ItemArray[x] + " \r\n"; c = c + 1; } } 

Spaces are displayed in the debagbox, empty in the datagrid, the project has not moved from WT. Datagrid is read from the hml schema if this is important, I suspect that the problem is related to the types of values.

  • Well, since no one answers ... Instead of fuel->Rows[y]->ItemArray[x] try fuel->Rows[y]->default[x] or fuel->Rows[y]->Item[x] . - Alexander Petrov
  • Item has not already tried, tomorrow I will try to default property. A question, and whether necessarily to declare? - Dow Jhob pm
  • no such properties, this is c ++ - Dow Jhob
  • This is not C ++. This C ++ / CLI is a completely different language. And, as you can see from the number of answers, it is absolutely unpopular and underused. In the latest versions of Visual Studio there are no templates for such projects at all. And personally, I have no desire to search and install them to help you (I think, like most). The documentation for this language is very bad; Find answers on the forums is almost unreal. Therefore, either switch to C # (if you are writing on the .NET platform), or use "pure" C ++ (then you will have to abandon Windows Forms). - Alexander Petrov
  • I cannot refuse the form wines, I would refuse the CPR, but I need to send very original structures with links to the uncontrollable dll by reference, I’m into a charm with this too bad - Dow Jhob

0