Page 2 of 2

Re: setting GRID Value

Posted: Tue Oct 27, 2020 8:07 pm
by franco
Serge,
I tried and seemed to work ok.
I created a public or private variable at start of procedure. Where := 1
Then in the grid onlostfocus {Where := {this.value}
ongotfocus {this.value := Where}
I did this in Functions but should work right at the grid.
PS when using a browse with a table WHERE has to be zero at to set to top at start.

Re: setting GRID Value

Posted: Tue Oct 27, 2020 8:24 pm
by serge_girard
Franco, I t doesn't work for MULTISELECT grid!

Serge

Re: setting GRID Value

Posted: Wed Oct 28, 2020 5:28 am
by franco
Sorry, I did not try in multiselect. I have never used multiselect.
Could you set multiselect off and set record then set multiselect back on.
I will try a multiselect grid.
Franco

Re: setting GRID Value

Posted: Thu Oct 29, 2020 2:42 am
by AUGE_OHR
hi,

what about NOT to Refresh"All" only active Row :idea:

Code: Select all

   FOR nCol := 1 TO iMax
      ...
      SetProperty( cForm, cBrowse, "CELL", nRow, nCol, xValue )

Re: setting GRID Value

Posted: Thu Oct 29, 2020 7:11 am
by serge_girard
Thanks Jimmy, I will try!
Serge