dbtext doesn't change values lazarus / 31-LCL ---------------------------------------------------------------------- Gebo · 2024-04-10 13:42 I use dbtext but when I changed dbgrid selected row , dbtext doesn't change the text value. note that I use zconnection and zquery. ---------------------------------------------------------------------- dseligo · 2024-04-10 13:58 I just tried and it changes value (if by 'text value' you mean Caption, which you see). Maybe if you provide some more info. OS, Laz, FPC versions and bitness, what database you use, example project? ---------------------------------------------------------------------- Gebo · 2024-04-10 14:03 I use win 10,mariadb database,lazarus 3.2 and fpc 3.2.2  . ---------------------------------------------------------------------- dseligo · 2024-04-10 15:31 Quote from: Gebo on April 10, 2024, 04:03:44 pmI use win 10,mariadb database,lazarus 3.2 and fpc 3.2.2  . My setup is same, except I'm on W11. Is ZEOS 7.2.14 or 8.0? I have 7.2.14. Did you set DataSource and DataField properties of DBText correctly? Is DataSource of DBGrid and DBText same? Try to make small test program with only DBGrid and DBText. If it still doesn't work post test project here. ---------------------------------------------------------------------- Gebo · 2024-04-10 16:02 I uses 7.2.14 but i am upgrading to 8 now. ---------------------------------------------------------------------- Gebo · 2024-04-10 16:13 I have just upgraded to zeosdb 8 and the same problem ---------------------------------------------------------------------- dseligo · 2024-04-10 16:59 Quote from: Gebo on April 10, 2024, 06:13:18 pmI have just upgraded to zeosdb 8 and the same problem What about rest of my post? If you use DBEdit instead of DBText, does it work then? ---------------------------------------------------------------------- Gebo · 2024-04-10 20:29 What about rest of my post? If you use DBEdit instead of DBText, does it work then? [/quote] I used dbedit but the problem still exist. ---------------------------------------------------------------------- rvk · 2024-04-10 20:36 Also... Please read the rest of that post... Quote from: dseligo on April 10, 2024, 05:31:25 pm[...] Did you set DataSource and DataField properties of DBText correctly? Is DataSource of DBGrid and DBText same? Try to make small test program with only DBGrid and DBText. If it still doesn't work post test project here. Without you providing more information or test project, we can't help you. ---------------------------------------------------------------------- Gebo · 2024-04-11 08:38 Quote from: rvk on April 10, 2024, 10:36:38 pmAlso... Please read the rest of that post... Quote from: dseligo on April 10, 2024, 05:31:25 pm[...] Did you set DataSource and DataField properties of DBText correctly? Is DataSource of DBGrid and DBText same? Try to make small test program with only DBGrid and DBText. If it still doesn't work post test project here. Without you providing more information or test project, we can't help you. Hi bro thank you for your attention . I am trying to change the label caption while I change the pointer in dbgrid . the label caption show the price of the product,but when I change the row selected in dbgrid nothing change in the label. I tried with dbtext and dbedit but the same problem. they take first value of the price where pointer is then when I move the pointer the label caption or dbtext or dbedit nothing changed in them. ---------------------------------------------------------------------- rvk · 2024-04-11 08:44 Quote from: Gebo on April 11, 2024, 10:38:21 amI tried with dbtext and dbedit but the same problem. they take first value of the price where pointer is then when I move the pointer the label caption or dbtext or dbedit nothing changed in them. We already said... create a small example project with just a dbgrid, db components and your dbedit or dbtext. If it shows the same problem you can upload the source of that small project (zipped). (If it doesn't... then there is something else in your code wrong) Here TDBText and TDBEdit work perfect in my small test project. ---------------------------------------------------------------------- Gebo · 2024-04-11 09:29 thanks alot I have solved it,but there is another problem I use arabic language and arabic character appeare as question marks on dbgrid like ???????. I use zconnection 8 with charset utf8 ---------------------------------------------------------------------- Gebo · 2024-04-11 09:32 thanks I resolved the problems . thank you all for your attention ---------------------------------------------------------------------- rvk · 2024-04-11 09:37 Quote from: Gebo on April 11, 2024, 11:32:47 amthanks I resolved the problems .