pro_imaj Posted April 26, 2018 Share Posted April 26, 2018 Merhaba; dblookupcombobox=>OnSelect olayına aşağıdaki kodu yazdığımda seçtiğim kaydı değil bir önceki seçtiğim kaydı getiriyor bunu nasıl düzeltebilirim? *dblookupcombobox'u hidden panel içinde kullanıyorum grid üzerinden seçim yapıyor kullanıcı. ShowMessage('KeyValue = ' + (sender as TUniDBLookupComboBox).KeyValueStr); Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 26, 2018 Administrators Share Posted April 26, 2018 LookupCombo Grid içinde mi yoksa form üzerinde mi? Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 26, 2018 Author Share Posted April 26, 2018 Grid içinde Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 26, 2018 Author Share Posted April 26, 2018 Aşağıdaki gibi kullanırsam ikinci mesajda doğru geliyor. Fakat ikinci mesajı tek kullanırsam gelmiyor. ShowMessage ('KeyValue = ' + (Sender as TUniDBLookupComboBox).KeyValueStr); ShowMessage(dblookupcombobox.Text); Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 26, 2018 Author Share Posted April 26, 2018 Böylede kullanınca ikinci mesaj doğru geliyorken ilkinde gelmiyor. ShowMessage ('KeyValue = ' + (Sender as TUniDBLookupComboBox).KeyValueStr); ShowMessage ('KeyValue = ' + (Sender as TUniDBLookupComboBox).KeyValueStr); Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 26, 2018 Administrators Share Posted April 26, 2018 Grid içerisinde bulunan editörün amacı gride veri aktarmaktir. Dogrudan kullanılması sorunlara yol açabilir. O comboboxu sadece editor olarak düşünmeniz gerekiyor Sent from my SM-N950F using Tapatalk Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 27, 2018 Author Share Posted April 27, 2018 O zaman soruyu şöyle değiştireyim. Grid'de ki bir Column'a veri yazma işlemi gerçekleştiğini nasıl alırım; Yapmak istediğim şu; Dblookupcombobox ta herhangi bir değer seçildiğinde bu seçilen değere istinaden veri tabanında sorgulama yapıp dönen değeri grid üzerindeki başka bir alanda göstermek! Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 27, 2018 Administrators Share Posted April 27, 2018 Grid'in OnSetCellValue event'ini kullanmayı deneyin. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.