Topic: How Even DoubleClick Cell TableGrid To Send Value To Combobox And Text

How Edit Script  Even DoubleClick Cell TableGrid To Send Value To Combobox And Text ?
http://s8.postimg.org/odbzmij1f/2015_08_28_Image_001.png

Post's attachments

Attachment icon lesson 009 mater detail Advance.zip 326.08 kb, 515 downloads since 2015-08-28 

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How Even DoubleClick Cell TableGrid To Send Value To Combobox And Text

procedure Form1_TableGrid2_OnCellDoubleClick (Sender: string; ACol, ARow: Integer);
begin
  form1.ComboBox1.dbItemID :=   form1.TableGrid2.dbItemID ;
  form1.Edit1.text :=
  SQLExecute ('select qty from tableb where id = ('+inttostr(form1.TableGrid2.dbItemID)+')');
end;
My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How Even DoubleClick Cell TableGrid To Send Value To Combobox And Text

Is that the answer Prahousefamily?

Re: How Even DoubleClick Cell TableGrid To Send Value To Combobox And Text

Your script is correct.

Dmitry.

Re: How Even DoubleClick Cell TableGrid To Send Value To Combobox And Text

I found interesting the example to get details from grid A to grid B with no script, but I am still searching why using double click in a grid to pass values to a combobox since the combobox would list the same values as in the grid. Do you have a more speaking example of the use of such a feature?