|
<< Click to Display Table of Contents >> Navigation: Telegram > 2019 > 11 > 26 > Telegram_2019-11-26T03 |
2019-11-26T03:11:46
Correction of \I create on runtime time the Tiwcombobox for each cell of the tiwgrid\ : I create on runtime time the Tiwcombobox for the second cell of each row of the tiwgrid. Sorry but i think, you understood.
2019-11-26T03:25:37
Source code of the page html
2019-11-26T03:35:24
Hi Alain. Your code is correct but I'd like to suggest that you can make it better doing one thing:
declare a variable of type TIWComboBox and use it instead of referencing the grid
so you can have:
theCombo := TIWComboBox.Create(Self);
theCombo.Width := 350;
theCombo.Font.FontFamily := 'Courier';
and so on.
Then you do:
gdCompta.Cell[gdCompta.RowCount - 1, 1].Control := theCombo
2019-11-26T03:36:50
This code =» gdCompta.Cell[gdCompta.RowCount - 1, 1]
actually calls a method over and over. The \as\ typecast also is costy
2019-11-26T03:39:31
Hi Alexandre, I will try your suggestion. Thank you for your help she is precious.