User (Legacy) Posted August 16, 2006 Report Share Posted August 16, 2006 Does chartfx for vs2005 support ITypedList? In playing with the demo I'm unable to get a collection that implements ITypedList to bind to the control. The control just shows NO DATA. Thanks, Mark Link to comment Share on other sites More sharing options...
Software FX Posted August 17, 2006 Report Share Posted August 17, 2006 Most DataBinding in WinForms is done through the Binding Manager. You can pass an ITypedList as a datasource and the Biding Manager will read from it. The only thing different from GridView is that the chart will not read immediately when you assign DataSource at run-time, you need to call: chart.DataSourceSettings.ReloadData(); Any subsequent changes to the source will be automatically picked up by the chart. If you take the sample in MSDN: How to: Implement the ITypedList Interface And replace grid with chart and add the call to ReloadData you will get the same results you get with the DataGridView. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 18, 2006 Author Report Share Posted August 18, 2006 Worked great after I added the call to ReloadData(). Thanks! "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:94sva2iwGHA.2572@webserver3.softwarefx.com... > Most DataBinding in WinForms is done through the Binding Manager. You can > pass an ITypedList as a datasource and the Biding Manager will read from > it. > > The only thing different from GridView is that the chart will not read > immediately when you assign DataSource at run-time, you need to call: > > chart.DataSourceSettings.ReloadData(); > > Any subsequent changes to the source will be automatically picked up by > the chart. > > If you take the sample in MSDN: > > How to: Implement the ITypedList Interface > > And replace grid with chart and add the call to ReloadData you will get > the same results you get with the DataGridView. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.