Dynamically data binding in tree view control in windows forms
-
Sir/Mam Sir i want to know in c# how to dynamically bind the data. After Selecting any node on right click it gives option like insert,edit,delete. on selecting insert option it data must be feeded to the database and reflect also on tree view control. Thanks
-
Sir/Mam Sir i want to know in c# how to dynamically bind the data. After Selecting any node on right click it gives option like insert,edit,delete. on selecting insert option it data must be feeded to the database and reflect also on tree view control. Thanks
Try following link... You will get overall idea Hierarchical TreeView control with data binding enabled[^] http://www.eggheadcafe.com/articles/treeview_databinding.asp[^] http://www.java2s.com/Code/CSharp/GUI-Windows-Form/TreeViewExample.htm[^] HTH
Jinal Desai - LIVE Experience is mother of sage....
-
Sir/Mam Sir i want to know in c# how to dynamically bind the data. After Selecting any node on right click it gives option like insert,edit,delete. on selecting insert option it data must be feeded to the database and reflect also on tree view control. Thanks
Follow these instructions get you data from the database formatted for loading into a treeview populate the treeview placing either the ID or the datarow into the tag property add a context menu to the treeview handle the crud events when Add then pop a dialog to get the information from the user save the dialog information back to the database reload the treeview from the database
Never underestimate the power of human stupidity RAH