v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

how to synchronize gridview in XtraGrid and XtraChart

Issue Details

Log in to Track Changes or Edit
Q137253
Question
Michael Chen
Yes
Processed
Answered
.NET
XtraCharts Suite
v8.2.4
Windows Server 2003
Microsoft Visual Studio 2008
11/11/2009 8:30:19 AM
-> Created by Michael Chen 11/26/2008 3:45:47 AM

I tried to show Gridview and XtraChart in the same form. And let the user choose a particular column to draw it on chart, it's ok, but two problems were encountered:
1. While I used Filter in Gridview, the chart cannot not be shown according to the filtered data.
2. While I used SeriesDataMember to generate series, but I cannot remove any series at run time.

Could you please help me to conquer these problems?
Thanks in advance.

<- Reviewed by DevExpress Team 11/26/2008 7:33:37 AM
<- Processed (Answered) by DevExpress Team 11/26/2008 1:49:41 PM

Hello Michael,

Thanks for the question. Assuming that ChartControl and GridView cannot be linked to each other, it's expected that the ColumnView.RowFilter expression used to filter GridView records has no effect on chart's data.
So, you might need to update the Series DataFilters collection manually. Refer to this documentation article to learn how this can be done: DataFilter Class.
To access auto-created series, handle the BoundDataChanged event. You can find a sample code snippet here: ChartControl.BoundDataChanged Event.

Also, note that our Support Center concept doesn't allow you to post multiple problems within one thread.
In the future, post a separate issue for each question. This way, we can process and track it in a more efficient way.

Thank you,
Alex.

<- Processed (Customer Closed) by Michael Chen 11/11/2009 8:30:19 AM
Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips