Re: RecordGrid question
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]
Re: RecordGrid question
{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 } } } Probably you also need something like {rg.select-record current-selection-index} in your event handler to really make sure that only one row is selected at the time. Hopefully the example gives yousome hints how to get a solution 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]
RecordGrid question
Hi gurus, I want to do that only one record in RecordGrid can be selected. In spite of seeking any methods or properties in RecordGrid,RecordSet and so on with online help, I can't find it. (ofcourse it's due to my lack of searching information skill...) Please tell me how to do that. Regards. -- - Maekawa Takanobu e-mail:[EMAIL PROTECTED] CANSOFT,INC.Tel:044(969)9747 Fax:044(969)9748 http://www.cansoft.co.jp/ *** 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]