View previous topic :: View next topic |
Author |
Message |
tkohler@1eeurope.ch
Joined: 27 Apr 2006 Posts: 3
|
Posted: Tue Aug 21, 2007 12:39 pm Post subject: Can't choose table in designer in DataSource |
|
|
Since updating to version 3.5.0.0 no table can be chosen as a DataSource in the tree in designer mode. It only shows the DataSet but doesn't show the tables in the DataSet.
e.g. I have a DataSet called dsTransmittal on my form. As DataSource I would like to set dsTransmittal.ppdChannel but ppdChannel is not shown in the designer. It only shows dsTransmittal.
I can fix this by adding the table ppdChannel in code.
Any suggestions?
Regards,
Thomas |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Aug 22, 2007 1:18 am Post subject: |
|
|
Did you create the dataset you are binding to under VS2003 or VS2005? VS2005 introduced a new mechanism for binding to dataset data which uses BindingSource components to tie the data consumer to the source. Virtual Tree 3.5 uses this mechanism.
Have a look at the Data Set Browser sample. If you select the DataSource property you should see a list of current data sources. You can expand the "Other Data Sources" node and then the "Project Data Sources" node under that. You should then see the Order Data Set listed and you can expand and select tables. This will create a BindingSource component (bound to the selected table) on your form and hook VirtualTrees DataSource to it.
If you created your dataset in VS2003 then you may need to create the BindingSource directly by dragging a BindingSource from the toolbox onto your form and then setting the DataSource and DataMember properties. Then set VirtualTree datasource to the BindingSource object you created _________________ Infralution Support |
|
Back to top |
|
|
|