Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 14 total
Thread Doubleclick to enter grid cell value
Wed, Jul 1 2015 8:42 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi All,

I have a grid connected to a dataset, when i enter a cell in grid i have
to doubleclick before i can change the value - is it normal?

Regards,
Hüseyin
Wed, Jul 1 2015 8:44 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

And, what's the best way of saving changed value to dataset, because
it's not done automatically as i can see Smile

Regards,
Hüseyin

On 01-07-2015 14:42, Hüseyin Aliz wrote:
> Hi All,
>
> I have a grid connected to a dataset, when i enter a cell in grid i
> have to doubleclick before i can change the value - is it normal?
>
> Regards,
> Hüseyin

Thu, Jul 2 2015 4:55 AMPermanent Link

Uli Becker

Hüseyin,

> And, what's the best way of saving changed value to dataset, because
> it's not done automatically as i can see Smile

You can always query a dataset's state in order to check if changes were
made. If so, just use a transaction and commit the changes.

I recommend to read the chapter "Using Datasets" in the EWB help. It's
all in there.

Uli
Thu, Jul 2 2015 7:06 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi Uli,

I am using a grid to display (and trying to update) the dataset, will
there be a difference here? I know i can save changes when using
standard edit,multiline etc, but i am not sure about the grid Smile

Regards,
Hüseyin

Den 02-07-2015 kl. 10:55 skrev Uli Becker:
> Hüseyin,
>
>> And, what's the best way of saving changed value to dataset, because
>> it's not done automatically as i can see Smile
>
> You can always query a dataset's state in order to check if changes
> were made. If so, just use a transaction and commit the changes.
>
> I recommend to read the chapter "Using Datasets" in the EWB help. It's
> all in there.
>
> Uli
>

Thu, Jul 2 2015 8:25 AMPermanent Link

Uli Becker

Hüseyin,

> I am using a grid to display (and trying to update) the dataset, will
> there be a difference here? I know i can save changes when using
> standard edit,multiline etc, but i am not sure about the grid Smile

It doesn't matter which control you use if this control is bound to a
dataset. Do you see something different?

Uli
Thu, Jul 2 2015 8:45 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Uli,

Probably i am doing something wrong but:

Dataset insert and loadrows from dataset works fine with the grid. When
i enter a cell (doubleclick actually -  just entering the cell does not
set focus)  in grid to change some value (like amount field), the
changes are not reflected back to dataset, even if i make a
dataset.update, dataset.save.. commit in a transaction.

Regards,
Hüseyin

Den 02-07-2015 kl. 14:25 skrev Uli Becker:
> Hüseyin,
>
>> I am using a grid to display (and trying to update) the dataset, will
>> there be a difference here? I know i can save changes when using
>> standard edit,multiline etc, but i am not sure about the grid Smile
>
> It doesn't matter which control you use if this control is bound to a
> dataset. Do you see something different?
>
> Uli
>
Thu, Jul 2 2015 9:58 AMPermanent Link

Uli Becker

Hüseyin,

> Dataset insert and loadrows from dataset works fine with the grid. When
> i enter a cell (doubleclick actually -  just entering the cell does not
> set focus)  in grid to change some value (like amount field), the
> changes are not reflected back to dataset, even if i make a
> dataset.update, dataset.save.. commit in a transaction.

First of all a correction: I spoke about the Dataset.State to check if
changes were made - actually I was talking about Dataset.Modified.

I just tried that and can confirm that the commit works, if you change a
value in a Grid's cell, press ENTER and then execute the Transaction code.
It does *not* work when you leave the record and execute the Transaction
code after that. In the latter case Dataset.Modified is false.

I can't say if that's a bug or by design, but would expect as well that
a commit saves all recent changes of the dataset.

So I can't help you with that.

Uli
Thu, Jul 2 2015 12:22 PMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Uli,

It does not work for me even if i press enter after change of value. Can
you please share the code where you change and save/post to dataset?
Thanks Smile

Regards,
Hüseyin


On 02-07-2015 15:58, Uli Becker wrote:
> Hüseyin,
>
> > Dataset insert and loadrows from dataset works fine with the grid. When
>> i enter a cell (doubleclick actually - just entering the cell does not
>> set focus)  in grid to change some value (like amount field), the
>> changes are not reflected back to dataset, even if i make a
>> dataset.update, dataset.save.. commit in a transaction.
>
> First of all a correction: I spoke about the Dataset.State to check if
> changes were made - actually I was talking about Dataset.Modified.
>
> I just tried that and can confirm that the commit works, if you change
> a value in a Grid's cell, press ENTER and then execute the Transaction
> code.
> It does *not* work when you leave the record and execute the
> Transaction code after that. In the latter case Dataset.Modified is
> false.
>
> I can't say if that's a bug or by design, but would expect as well
> that a commit saves all recent changes of the dataset.
>
> So I can't help you with that.
>
> Uli
Thu, Jul 2 2015 3:32 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Hüseyin,

<< I have a grid connected to a dataset, when i enter a cell in grid i have
to doubleclick before i can change the value - is it normal? >>

Yes, you have to double-click or use the Enter key.

One of the outstanding enhancement requests is an AlwaysShowEditor type of
property for the grids.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 2 2015 3:34 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Hüseyin,

<< Dataset insert and loadrows from dataset works fine with the grid. When i
enter a cell (doubleclick actually -  just entering the cell does not
set focus)  in grid to change some value (like amount field), the changes
are not reflected back to dataset, even if i make a dataset.update,
dataset.save.. commit in a transaction. >>

Please post the code that you’re using.  It matters where you start the
transaction/commit, because it has to be done *after* the row has been
updated.

Tim Young
Elevate Software
www.elevatesoft.com

Page 1 of 2Next Page
Jump to Page:  1 2
Image