The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Data Grid Nodes Count
Posted: 06 Feb 08 5:05 AM
|
Hi all, I'm having trouble getting a true count of all nodes within a datagrid as it only gives the number of visible nodes rather than the true number of nodes. I know that double clicking a node expands all the nodes but I can't for the love of me programatically work this out. All help appreciated.
Cheers Kevin |
|
|
|
Re: Data Grid Nodes Count
Posted: 06 Feb 08 8:36 AM
|
DataGrid or TreeView?
If you are trying to count the fields in the datagrid then I would just multiply the number of fields x the datagrid's recordset's recordcount
If you are trying to count the nodes in a treeview control, I would tend to count them as I'm inserting them into the treeview. |
|
|
|
Re: Data Grid Nodes Count
Posted: 12 Feb 08 3:40 AM
|
I don't insert the nodes I provide a sql statement. Basically I want to work through all the nodes one by one but until I've click on a node to activate the double click expanding functionality I can't refer to any node that is not visible unless I scroll. It's weird. |
|
|
|
Re: Data Grid Nodes Count
Posted: 12 Feb 08 5:19 AM
|
Ah I've finally cracked this one.. refer to the recordset rather than the nodes! Cheers anyway |
|
|
|