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 

Preventing Display of unneeded DataView

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
sprugh
Guest





PostPosted: Tue Jan 31, 2006 8:42 pm    Post subject: Preventing Display of unneeded DataView Reply with quote

I am using the designer to define my columns and Bindings and then setting the DataTable to the tree.DataSource during runtime.

To do this I added:
DataView(EventGroup)
DataRow(EventGroup)


Then in code I do:

m_tree.DataSource = notifyDS.Tables["EventGroup"];

So, this displays, but I get an extra row at the top for the DataView(EventGroup) like this:

-EventGroup
--Group 1
--Group 2
--Group 3
--Group 4

But, I would really like:

-Group 1
-Group 2
-Group 3
-Group 4


Since the tree requires a DataView to work, how do I get the the Group entries to appear at the top level? If I remove the DataView, then the items will not display.

Thanks for your help.

-Scott
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jan 31, 2006 10:11 pm    Post subject: Reply with quote

Set ShowRootRow to false.
_________________
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