Recent

Author Topic: How can edit cell TStringGrid in multirow without infinite linee  (Read 3177 times)

laguna

  • Sr. Member
  • ****
  • Posts: 323
How can edit cell TStringGrid in multirow without infinite linee

To
   test line in one row over limit cell
From
  test line in tow row
  with limit cell

In modalità di visualizzazione funziona bene, ho l'implementazione di drawcell.

In modalità di modifica una cella di due righe diventa una rigaIn edit mode?


Thanks


jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: How can edit cell TStringGrid in multirow without infinite linee
« Reply #1 on: June 28, 2021, 11:02:34 pm »
I think you want to restrain what columns and rows can be selected ?

Code: Pascal  [Select][+][-]
  1. procedure TForm1.StringGrid1SelectCell(Sender: TObject; aCol, aRow: Integer;
  2.   var CanSelect: Boolean);
  3. begin
  4.   CanSelect := (aCol < 3)and(aRow < 3);
  5. end;                                              
  6.  
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018