Jump to content
Software FX Community

Dataset only displays part of a dataset as a datasource


User (Legacy)

Recommended Posts

Hi,

I'm trying to bind the ChartFX chart to a datatable of a dataset. A grid

( a syncfusion griddataboundgrid) and the chart lay on the same form. As

the form loads, the datatable (dt) is filled from an Access DB using a DA.

I use the grid to modify the data. The changes are updated to the dt of the

dataset and the DB is updated.

When I press a button to refresh the grid (using

Chart1.DataSourceSettings.DataSource = ds.dtTableX), , the grid is indeed

updated. but the first element of data depends on the selected row on my

grid. All other rows are displayed.

This is unexpected! And annoying. I believed the grid, the dataset and the

chart would be disconnected. I just don't know by what mechanism the chart

is bound to the grid. All they have in common is that they are set to the

same datasource.

Can someone explain why this occurs and how to cicumvent that problem.

tks

Francois rioux

Link to comment
Share on other sites

I am not sure if I understood correctly whether the chart was picking up the

changes or the grid was picking them up incorrectly.

Note that if you bind two or more objects to a dataset and then modify its

contents, the controls should pick up the changes.

If you want the chart to be disconnected you may want to pass the data

manually or set the datasource to null after the data has been passed to the

chart.

Regards,

JC

Software FX Support

"Fran

post-2107-13922378295342_thumb.jpg

Link to comment
Share on other sites

It' not a matter of picking up the changes.

First, the chart doesn't refresh as the dataset changes. It is a know issue

of the chart as I found on you site (Q6002163. DataBinding: Changes in

dataset not reflected in chart). Or should is refresh (I downloaded version

6.0.839.0 only 2 days ago)? So I have to use the button to force the

rebinding of the chart.

The problem is that when I refresh the chart, the data it uses is the

dataset but not the whole dataset. The first row of the dataset is where my

cursor is on the grid. I think it has to do with the default

CurrencyManager that both control use as they are bound to the same dataset.

I'll check this out.

Francois.

"Software FX Support" <support@softwarefx.com> wrote in message

news:cfHpwKJTDHA.3268@WEBSERVER1...

> I am not sure if I understood correctly whether the chart was picking up

the

> changes or the grid was picking them up incorrectly.

>

> Note that if you bind two or more objects to a dataset and then modify its

> contents, the controls should pick up the changes.

>

> If you want the chart to be disconnected you may want to pass the data

> manually or set the datasource to null after the data has been passed to

the

> chart.

>

> Regards,

>

> JC

> Software FX Support

>

> "Fran

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...