I have a GRID
Code: Select all
DEFINE GRID GRID_GEN_ERRORS
ROW 50
COL 10
WIDTH 1600
HEIGHT 850
HEADERS {'ID', 'PERS', 'STATUS', 'ERROR-WARNING' }
WIDTHS {1, 70, 100, 1400 }
JUSTIFY {GRID_JTFY_LEFT, GRID_JTFY_LEFT,GRID_JTFY_LEFT, GRID_JTFY_LEFT }
CELLNAVIGATION TRUE
FONTSIZE 16
FONTNAME 'Arial'
FONTBOLD TRUE
COLUMNWHEN { {|| FALSE }, {|| FALSE }, {|| TRUE }, { || FALSE } }
COLUMNCONTROLS { { 'TEXTBOX', 'CHARACTER'}, ;
{ 'TEXTBOX', 'CHARACTER'}, ;
{ 'COMBOBOX', {'OK', 'TO DO', 'IN BEHANDELING' ,'IGNORE'} }, ;
{ 'TEXTBOX', 'CHARACTER'} }
ALLOWEDIT TRUE
ITEMS {}
END GRID
// ONDBLCLICK EDIT_GEN_ERROR_PERS()
// ONCLICK EDIT_GEN_ERROR_PERS()
Serge
I can change third column with Combobox without a problem.
But I need to have the value of column 1 (ID) when I click or double-click on it.
I tried with This.CellRowIndex, This.CellColIndex, This.CellRow, This.CellCol but it don't give back a value.
I tried with my own function (which works fine with grids without COLUMNCONTROLS )
Code: Select all
FUNCTION Column_Value( ControlName, ParentForm , nCol )
/******************************************************/
LOCAL aRet := {}
nCol := Iif( nCol == Nil .Or. nCol == 0 , 1 , nCol )
aRet := GetProperty ( ParentForm , ControlName , 'Item' , GetProperty( ParentForm , ControlName , 'Value' ) )
RETURN( aRet [ nCol ] )