Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't choose table in designer in DataSource

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
tkohler@1eeurope.ch



Joined: 27 Apr 2006
Posts: 3

PostPosted: Tue Aug 21, 2007 12:39 pm    Post subject: Can't choose table in designer in DataSource Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Aug 22, 2007 1:18 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group