Subject Fw: [IBO] IB_Grid / button
Author Cagatay Tengiz
I've tested what I wrote and saw that I've made mistakes... Corrections
below :

----- Original Message -----
From: Cagatay Tengiz
Sent: Saturday, October 26, 2002 11:38 AM
Subject: Re: [IBO] IB_Grid / button


>If you have multiple TIB_Edits on your grid then I think you can
>which edit's button was pressed by using below code (only a assumption, not
>tried yet)
> if (sender is TIB_Edit) then begin
> if (sender as TIB_Edit).Name = YOUR_TIB_EDIT_NAME

Above code is totally wrong... Right version is (tested and applied)

if YOURGRID.SelectedField.FieldName = YOUR_TIB_EDIT1.DataField then begin
{do sth}

if YOURGRID.SelectedField.FieldName = YOUR_TIB_EDIT2.DataField then begin
{do another thing}

Cagatay Tengiz

Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts