I have a form that I have several string grids on. One string grid is filled with information that I would like to have the users drag to one of the other grids. I have looked at the help on the DragOver and DragDrop, but can't figure out how to get the information out!
Here's what I've got so far:
Can anyone tell me what I need to do in order to extract information from the specific columns?
Thanks
Leslie
Here's what I've got so far:
Code:
procedure TfrmSelectJury.sgJurorsDragOver(Sender, Source: TObject; X,
Y: Integer; State: TDragState; var Accept: Boolean);
begin
Accept := Source is TStringGrid;
end;
procedure TfrmSelectJury.sgJurorsDragDrop(Sender, Source: TObject; X,
Y: Integer);
begin
if (Sender is TStringGrid) and (Source is TStringGrid) then
begin
with Sender as TStringGrid do
begin
//here I would like to take the value of columns from the first grid (sender) and put them in columns in the second grid (source)
end;
end;
end;
Can anyone tell me what I need to do in order to extract information from the specific columns?
Thanks
Leslie