|
Infralution Support Support groups for Infralution products
|
View previous topic :: View next topic |
Author |
Message |
sprugh Guest
|
Posted: Tue Jan 31, 2006 8:42 pm Post subject: Preventing Display of unneeded DataView |
|
|
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
|
Posted: Tue Jan 31, 2006 10:11 pm Post subject: |
|
|
Set ShowRootRow to false. _________________ Infralution Support |
|
Back to top |
|
|
|
|
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
|