Code for table
Posted: Mon Aug 05, 2019 6:22 pm
I am trying to figure out code for a table and tried the following:
But what I am getting is for every column in the table, I get that many identical rows. For example, the above gives three identical rows, since I had a 3 columns.
How do I get a table with just one row from the above pattern, or something similar?
Code: Select all
TRVTableItemInfo * table;
table = new TRVTableItemInfo(1, 3, RichView1->RVData);
table->Cells[0][0]->Clear();
table->Cells[0][0]->AddNL("One", 1, 1);
RichView1->AddItem("A", table);
table->Cells[0][1]->Clear();
table->Cells[0][1]->AddNL("Two", 1, 1);
RichView1->AddItem("B", table);
table->Cells[0][2]->Clear();
table->Cells[0][2]->AddNL("Three", 1, 1);
RichView1->AddItem("C", table);
RichView1->Format();
How do I get a table with just one row from the above pattern, or something similar?