Recent

Author Topic: [solved]DBGRID add(edit title) columns problem  (Read 3308 times)

doniuzas

  • New Member
  • *
  • Posts: 13
[solved]DBGRID add(edit title) columns problem
« on: January 30, 2015, 01:55:11 pm »
Hello, I'm not a big expert lazarus and have problem.
I start new project and have zconnection, zquery, datasource and dbgrid.
My dbgrid get info from query all is ok, but i can't edit columns titles, because can't add columns to object inspector, i can only make new columns in dbgrid.Before everything went well, but now it does not, what am I doing wrong? Please need quick help.
See atachment.
« Last Edit: February 11, 2015, 09:22:44 am by doniuzas »

balazsszekely

  • Guest
Re: DBGRID add(edit title) columns problem
« Reply #1 on: January 30, 2015, 02:32:52 pm »
Make a new column(click it), then select the appropriate FieldName (object inspector), if you want to change the title  caption go to property Title, expand it, then change the Caption value!

doniuzas

  • New Member
  • *
  • Posts: 13
Re: DBGRID add(edit title) columns problem
« Reply #2 on: January 30, 2015, 03:03:59 pm »
but i know, there always was additional button in "editing dbgrid column" after "+ add"    and         "- delete" which imports all columns from query with their "columns titles" from query.sql

balazsszekely

  • Guest
Re: DBGRID add(edit title) columns problem
« Reply #3 on: January 30, 2015, 03:16:26 pm »
You cannot import the columns, double click the ZQuery1 add the fields you need, then edit the display label! That's it! The other solution is...see my first post!

doniuzas

  • New Member
  • *
  • Posts: 13
Re: DBGRID add(edit title) columns problem
« Reply #4 on: February 02, 2015, 09:15:21 am »
thanks getmem

 

TinyPortal © 2005-2018