Recent

Author Topic: TDBGrid questions  (Read 4681 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
TDBGrid questions
« on: June 15, 2011, 10:25:56 am »
Hello, I wanted to know if a date TDBGrid you can apply filters on data natively as it does on access to grids. Or if there is already an object that does something like that. For example right column filter "value".

Another thing I wanted to understand is:

I have two tables, the table workers and the work table.
Each work table has a field that matches the ID of the work you do. How do I ensure that I can change that by TDBGrid? Making it appear as if it were a combobox?! Thanks for your help
« Last Edit: June 15, 2011, 12:46:04 pm by xinyiman »
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: TDBGrid questions
« Reply #1 on: June 15, 2011, 12:46:23 pm »
Edit message up
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: TDBGrid questions
« Reply #2 on: June 15, 2011, 02:01:21 pm »
Wanting to simulate the filter access with my item if necessary, how can I not show TDBGrid in a row in the query? Without changing the query. And hopefully you can sort a column in a TDBGrid to my liking? If you like? help me please.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: TDBGrid questions
« Reply #3 on: June 15, 2011, 03:28:13 pm »
Why in the example I have attached I can not enter data, or rather, I insert the data, then press SALVA and close the program will re-open I do not find the data.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: TDBGrid questions
« Reply #4 on: June 16, 2011, 07:41:39 am »
anyone who can help me?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: TDBGrid questions
« Reply #5 on: June 16, 2011, 08:08:08 am »
Does anyone know of an example where we see a record entry directly from TDBGrid? thanks
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018