Forum > LCL
Only 1 ComboBox in only 1 specified cell of StringGrid
asdf:
I got this from internet.
.
.
.
How can we apply to have only 1 ComboBox in only StringGrid2.Cells[1,1] ?
cpalx:
change
if ACol in [1] then
...
by
if (ACol =1)and(Arow=1) then
...
asdf:
Thank you so much.
And I found another example ...
1. Very nice but it still stood silent. What should I do more after putting StringGrid1 on Form1 ?
2. And how can we apply to have only 1 ComboBox in only StringGrid1.Cells[1,1] ?
cpalx:
Acol te dice la columna y Arow la fila ...
Hydexon:
Best alternative with the OnSelectCellEditor. avoid write the first code are you posted. i see this code in the MyDBF Studio source code by Calogiuri Enzo Antonio.
P.S: You forget the code StringGrid1.EditorByStyle(cbsPickList) if you want show the Combobox properly in the grid!
Navigation
[0] Message Index
[#] Next page