Is there a way to set the NodeOrder when adding a new folder? SetValue() doesn't seem to work and tnChildNode.NodeOrder is read only.
Here's the snippet of code:
foreach (DataRowView drvMonthRow in dvMonths)
{
string sMonth = Convert.ToString(drvMonthRow["MonthName"]);
CMS.TreeEngine.TreeNode tnMonthNode = new CMS.TreeEngine.TreeNode("CMS.Folder", provider);
// set document properties
tnMonthNode.NodeName = sMonth;
tnMonthNode.NodeAlias = sMonth;
tnMonthNode.SetValue("DocumentName", sMonth);
tnMonthNode.SetValue("DocumentCulture", "en-us");
tnMonthNode.SetValue("NodeOrder", drvMonthRow[2]);
// create New document
tnMonthNode.Insert(tnNewFolder.NodeID);
}