Subject | No way to find out the current selection of an IB_Grid? |
---|---|
Author | Jeroen W. Pluimers (All I'M) |
Post date | 2000-12-22T09:56:07Z |
I have an application where I want to copy data between two grids.
However, that is only possible when a record is selected in a grid.
How can I find out if that is the case?
Right now, I have a clumsy solution that assumes if no record is selected,
all the fields (including primary key) are NULL:
function TVaardigheidSoortDataModule.IsVaardigheidNiveauAvailable: Boolean;
begin
Result := not VaardigheidNiveauIB_Query.FieldByName('ID').IsNull;
end;
Jeroen W. Pluimers
All Information Management
http://www.all-im.com
However, that is only possible when a record is selected in a grid.
How can I find out if that is the case?
Right now, I have a clumsy solution that assumes if no record is selected,
all the fields (including primary key) are NULL:
function TVaardigheidSoortDataModule.IsVaardigheidNiveauAvailable: Boolean;
begin
Result := not VaardigheidNiveauIB_Query.FieldByName('ID').IsNull;
end;
Jeroen W. Pluimers
All Information Management
http://www.all-im.com