Topic: get value in selected table grid cell

Please help with correct syntax/properties....

procedure frmDictionary_gridGender_OnCellClick (Sender: string; ACol, ARow: Integer);
begin
     frmDictionary.edGender.Text := frmDictionary.gridGender.(value in the selected grid cell)

end;

Grid has only one column named 'gender'

Thanks

Re: get value in selected table grid cell

Hello,

procedure frmDictionary_gridGender_OnCellClick (Sender: string; ACol, ARow: Integer);
begin
     frmDictionary.edGender.Text := frmDictionary.gridGender.Cells(ACol, ARow);
end;
Dmitry.

Re: get value in selected table grid cell

Perfect. Thanks. Which standard Delphi control are you using in VDB? I need to read up on the object properties and methods.

Re: get value in selected table grid cell

TLabel
TButton
TEdit
TMemo
TComboBox
TCheckBox
TDateTimePicker
TMonthCalendar
TImage
TPanel
TGroupBox
TPageControl


also you can create other components by using a script that are present in Delphi, like TToolBar, TMenu etc.

Dmitry.

Re: get value in selected table grid cell

Thanks. Which Delphi control is used for the tablegrid in VDB? I want to learn its methods and properties.

Re: get value in selected table grid cell

This is not a standard component, TNextGrid from http://www.bergsoft.net/en-us/product/n … erview.htm


In current version you have access to only the following methods:
AddRow(Count: Integer = 1): Integer;
ClearRows;


properties
VisibleRows: integer;
FixedCols: integer;
Cells(ARow, ACol): string;
RowHeight(ARow): integer;

Dmitry.

Re: get value in selected table grid cell

Thank you. Enjoying your project very much. Please keep it up and more versions coming. :-)