Subject RE : [IBO] Get the current field name of the active cell in IB_Grid
Author Joseph Osende
Hi, Marco !

The TIB_Grid's selectedField property allows to access the TIB_Grid's
selected field properties ( fieldName, domainName, etc).

The following code works for me :

type
Tmag = class(TForm)
.
.
magGrid: TIB_Grid;
Button1: TButton;
.
.
procedure Button1Click(Sender: TObject);
.
.

private
{ Private declarations }
.
.
public
{ Public declarations }
.
.
end;

.
.
procedure Tmag.Button1Click(Sender: TObject);
begin
// when I click the button a popup window shows
// the name of the selected field of the TIB_Grid component
showMessage( magGrid.selectedField.FieldName )
end;


With regards,

Joseph

> -----Message d'origine-----
> De : Marco Menardi <mmenaz@...>
[mailto:mmenaz@...]
> Envoyé : jeudi 20 février 2003 15:41
> À : IBObjects@yahoogroups.com
> Objet : [IBO] Get the current field name of the active cell in IB_Grid
>
> Hi, I need to get the current column (field) of the IB_Grid. I need to
> know it's name to loop then inside the dataset copying that field data
> value in a memo.
> How can I get it (of course, outside IB_Grid event handlers. I will
> have a TButton on the form to start the copy).
> thanks
> Marco Menardi
>
>
>
> ------------------------ Yahoo! Groups Sponsor
>
>
________________________________________________________________________
__
> _
> IB Objects - direct, complete, custom connectivity to Firebird or
> InterBase
> without the need for BDE, ODBC or any other layer.
>
________________________________________________________________________
__
> _
> http://www.ibobjects.com - your IBO community resource for Tech Info
> papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/



[Non-text portions of this message have been removed]