User (Legacy) Posted January 21, 2003 Report Share Posted January 21, 2003 We are creating a DataTable on code not using a data source and the ChartFX says there is no data on the set, but there is data alright. By some reason it dosent get the data in it, if I connect it directly to the data source it works. A ListProvider also works fine, but need to add servral series and a ListProvider seems to accept only one. How can fill the Grid with data using a DataSource on a on memory basis not from a database. Regards, Hugo Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 21, 2003 Author Report Share Posted January 21, 2003 We are creating the DataTable on line, not from the data base with somthing like this, and it dosen't work if we use the database directly it works fine. We are using somthing like this to create the new table. Dim dtResult As New DataTable("Heats") For Each colName In aCols dtResult.Columns.Add(New DataColumn(colName, dt.Columns(colName).GetType())) Next "Hugo Rumayor" <hrumayor@NOSPAM.amige.com> wrote in message news:qNNuCwNwCHA.1368@webserver1.softwarefx.com... > We are creating a DataTable on code not using a data source and the ChartFX > says there is no data on the set, but there is data alright. By some reason > it dosent get the data in it, if I connect it directly to the data source it > works. A ListProvider also works fine, but need to add servral series and a > ListProvider seems to accept only one. How can fill the Grid with data using > a DataSource on a on memory basis not from a database. > > Regards, > > Hugo > > Link to comment Share on other sites More sharing options...
Software FX Posted January 21, 2003 Report Share Posted January 21, 2003 Can you post a small sample code that contains the table creation and chart customization ? -- Regards, JC Software FX Support "Hugo Rumayor" <hrumayor@NOSPAM.amige.com> wrote in message news:rYOg33NwCHA.1368@webserver1.softwarefx.com... > We are creating the DataTable on line, not from the data base with somthing > like this, and it dosen't work if we use the database directly it works > fine. > We are using somthing like this to create the new table. > > Dim dtResult As New DataTable("Heats") > > For Each colName In aCols > > dtResult.Columns.Add(New DataColumn(colName, dt.Columns(colName).GetType())) > > Next > > "Hugo Rumayor" <hrumayor@NOSPAM.amige.com> wrote in message > news:qNNuCwNwCHA.1368@webserver1.softwarefx.com... > > We are creating a DataTable on code not using a data source and the > ChartFX > > says there is no data on the set, but there is data alright. By some > reason > > it dosent get the data in it, if I connect it directly to the data source > it > > works. A ListProvider also works fine, but need to add servral series and > a > > ListProvider seems to accept only one. How can fill the Grid with data > using > > a DataSource on a on memory basis not from a database. > > > > Regards, > > > > Hugo > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 21, 2003 Author Report Share Posted January 21, 2003 Thanks, We found the trouble it was a mistake we made on a data type here: dtResult.Columns.Add(New DataColumn(colName, dt.Columns(colName).GetType())) In runtime nothing crashed sadly, Best Regards, Hugo "Software FX Support" <support@softwarefx.com> wrote in message news:u#WmoqVwCHA.1368@webserver1.softwarefx.com... > Can you post a small sample code that contains the table creation and chart > customization ? > > -- > Regards, > > JC > Software FX Support > "Hugo Rumayor" <hrumayor@NOSPAM.amige.com> wrote in message > news:rYOg33NwCHA.1368@webserver1.softwarefx.com... > > We are creating the DataTable on line, not from the data base with > somthing > > like this, and it dosen't work if we use the database directly it works > > fine. > > We are using somthing like this to create the new table. > > > > Dim dtResult As New DataTable("Heats") > > > > For Each colName In aCols > > > > dtResult.Columns.Add(New DataColumn(colName, > dt.Columns(colName).GetType())) > > > > Next > > > > "Hugo Rumayor" <hrumayor@NOSPAM.amige.com> wrote in message > > news:qNNuCwNwCHA.1368@webserver1.softwarefx.com... > > > We are creating a DataTable on code not using a data source and the > > ChartFX > > > says there is no data on the set, but there is data alright. By some > > reason > > > it dosent get the data in it, if I connect it directly to the data > source > > it > > > works. A ListProvider also works fine, but need to add servral series > and > > a > > > ListProvider seems to accept only one. How can fill the Grid with data > > using > > > a DataSource on a on memory basis not from a database. > > > > > > Regards, > > > > > > Hugo > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.