Jump to content

dbgrid editor kullanımı


csyasar

Recommended Posts

merhaba,

 

demolar içerisindeki gedit isimli projeye bakarak gride editor olarak unidblookupcombobox atamaya çalıştım. veri olarak id'den bulacağı stringi çekmesi gereken rakamı gösteriyor. . gridin ilgili alanının içine girdiğimde lookup çalışıyor. itemlar string olarak gözüküyor. ancak  lookupdaki item lardan birini seçtiğimde hata veriyor ve integer olması gerekir diyor. bunun çözümü var mı?

post-1917-0-03794200-1410746149_thumb.jpg

post-1917-0-86045900-1410746150_thumb.jpg

post-1917-0-37851200-1410746152_thumb.jpg

Link to comment
Share on other sites

SELECT b.*, br.ad as birimad FROM basvuru b INNER JOIN birim br ON br.id = b.birimid

normalde birim adını lookup olarak birim isimli tablodan çekebiliyoruz. o şansımız olmadığı için yukardaki gibi bir kodla bu işi hallediyoruz. grid üzerinde oynama yaptırırsanız sıkıntı olur bilginize.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...