protected void Page_Load(object sender, EventArgs e) { { verticalSplitterTreeAndInput.LeftDivId = divTree.ClientID; verticalSplitterTreeAndInput.RightDivId = divInput.ClientID; BidTreeBLL btBLL = new BidTreeBLL(); dt = btBLL.GetBidTreeFromSessionDatatable(); GridView1.DataSource = dt; GridView1.DataBind(); tvBidTree.DataFieldID = "btNodeID";// tvBidTree.DataFieldParentID = "btParentNodeID";// tvBidTree.DataTextField = "btName";// tvBidTree.DataValueField = "btNodeID";// tvBidTree.DataSource = dt;// tvBidTree.DataBind(); //to this line am getting error } tvBidTree.ExpandAllNodes();// tvBidTree.FindNodeByValue("0").Expanded = true; //commented on 29/06 if (!IsPostBack) { ClearControls(); ClearDynamicControls(); tvBidTree.AllowNodeEditing = true; tvBidTree.FindNodeByValue("0").AllowEdit = false; //commented on 29/06 } ScriptManager.RegisterStartupScript(Page, typeof(Page), "KetMessageDivAnimation", "messageDivAnimation('" + SessionManager.JsControlHideSeconds + "');", true); //ScriptManager.RegisterStartupScript(Page, typeof(Page), "resetWBSTreeDiv", "resetWBSTreeDiv();", true); }
btNodeID
dt
Quote:Check for the casesentivie property in the datatable.if parent table having duplicate values then it will throw the exception 'These columns don't currently have unique values'. BY default datatable will ignore the casesensitivity and read as 'A' and 'a' are same.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)