Hi Maekawa,

I would suggest you add a event handler for SelectionChanged to your
RecordGrid, store the current selection and react on changes.

{let current-selection-index = -1}


{RecordGrid
record-source = {LocalRecordSet
{RecordFields {RecordField "A"}, {RecordField "B"}},
{RecordData A = "aa", B = "bb"},
{RecordData A = "aaa", B = "bbb"}
},
{on SelectionChanged at rg:RecordGrid do
{rg.deselect-record current-selection-index}
set current-selection-index =
{if rg.selection.record-count > 0 then
{rg.selection.records.read-one}
else
-1
}
}
}


Friedger

*******************************************
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]

Reply via email to