Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

DBGrid X Sqlite3Dataset

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Arí Ricardo Ody

Suppose I have a DBGrid associated with a Sqlite3Dataset. Suppose a execute:

Sqlite3Dataset.Insert

It will appear a new line in the DBGrid. I type some data in the colimns of this new line.

How I can get the data typed from my Lazarus code?

I try very hard and don't discover the way of do this.

May someone help me?

Greetings from Sao Paulo - Brazil

Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110807/32163f03/attachment.html>

Reply by email

Felipe Monteiro de Carvalho
to Arí Ricardo Ody

2011/8/7 "Ar? Ricardo Ody" :

It will appear a new line in the DBGrid. I type some data in the colimns of this new line. How I can get the data typed from my Lazarus code?

Why do you want to do this? To filter the data which can be inputed? Maybe with a more clear use case some other alternative is easier.

But one could try: TDBGrid.OnEditingDone, combine that with something from TDBGrid to know which column/line is selected and read the data in the Dataset. But I am not sure if at this event the data is already commited to the database.

But in general, I think that TDBGrid is a very generic component, not something which can be used for every use case.

Felipe Monteiro de Carvalho

Reply by email