Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TAdvStringGrid
How to control that at specific column positions, no column can be dropped.
How to control that at specific column positions, no column can be dropped.
With the OnAllowColumnDrop event, it is possible to control that at specific column positions, no column can be dropped.
Example:
With a TAdvGridColumnPicker connected to a grid and the code:
procedure TForm1.AdvGridColumnPicker1AllowColumnDrag(Sender: TObject; ACol: Integer; var Allow: Boolean); begin Allow := ACol > 2; end; procedure TForm1.AdvGridColumnPicker1AllowColumnDrop(Sender: TObject; ACol: Integer; var Allow: Boolean); begin Allow := ACol > 2; end;