>public class csNodeInfo >{ > public int RowId { get; set; } > public NodeType Type { get; set; } > public int ProductId { get; set; } > public string Product_Series { get; set; } > public string Product_Name { get; set; } > public string Product_Number { get; set; } > public string Category {get; set;} > public int PartId { get; set; } > public string Part_Number {get; set;} > public string Part_Description {get; set;} > public string Tribal { get; set; } > public bool IsTribalSelected { get; set; } > public decimal PartPrice { get; set; } > public int QuantityReq { get; set; } > public int PartRatio { get; set; } > public int WhseQty1 { get; set; } > public int WhseQty2 { get; set; } >}>
>csNodeInfo NodeInfo = (csNodeInfo)Node.Tag;
>cmdPrice.Enabled = (NodeInfo.Type == NodeType.Price);
>
>>TreeNode Node = tvwResults.SelectedNode; >Node.BeginEdit(); >>
>decimal Price = 0.00M; >csNodeInfo NodeInfo = (csNodeInfo)Node.Tag; > >foreach (DataRow Row in csCOSApp.ActiveProject.dsDataStore.Tables[0].Rows) >{ > if ((int)Row["RowId"] == NodeInfo.RowId) > { > Price = (decimal)Row["PartPrice"]; > break; > } >} > >Node.Text = Price.ToString(); >>
>MessageBox.Show(Node.Text); >>