DBGrid - permitir aumentar e diminuir colunas mas nao mover |
Top Previous Next |
|
// Permitir aumentar e diminuir o tamanho, mas não deixar trocar as colunas // de lugar:
procedure GridColumnMoved(Sender: TObject; FromIndex, ToIndex: Integer); begin Grid.Columns[ToIndex].Index := FromIndex; // impede de mover end; |