Click here to Skip to main content
15,889,795 members
Home / Discussions / C#
   

C#

 
GeneralIs it worth to download VS2005 Express Beta2 Pin
Anonymous22-Apr-05 5:12
Anonymous22-Apr-05 5:12 
GeneralRe: Is it worth to download VS2005 Express Beta2 Pin
Carl Mercier22-Apr-05 9:11
Carl Mercier22-Apr-05 9:11 
QuestionA question no one has asked ??? Pin
LongRange.Shooter22-Apr-05 5:08
LongRange.Shooter22-Apr-05 5:08 
AnswerRe: A question no one has asked ??? Pin
Dave Kreskowiak22-Apr-05 5:36
mveDave Kreskowiak22-Apr-05 5:36 
GeneralRe: A question no one has asked ??? Pin
LongRange.Shooter25-Apr-05 8:13
LongRange.Shooter25-Apr-05 8:13 
GeneralTreeView--Treenode with a Checkbox bound to database Pin
billoo22-Apr-05 4:14
billoo22-Apr-05 4:14 
GeneralRe: TreeView--Treenode with a Checkbox bound to database Pin
John Fisher22-Apr-05 7:41
John Fisher22-Apr-05 7:41 
GeneralRe: TreeView--Treenode with a Checkbox bound to database Pin
billoo22-Apr-05 8:24
billoo22-Apr-05 8:24 
John,

Thanks for your reply.

Just need some more clarification on your suggestion.

I am aware of the "Tag" property of the TreeNode. Once I am done processing the For loop, the tree is populated successfully. At this moment there is no connection between the data table (which was used to populate the tree) and the TreeNodes. I can capture user's action when he/she checks/unchecks a node in the AfterCheck event. But then at that moment, since there is no binding between the data table and the TreeNode data, changes will not be recorded in the data table.

Are you suggesting that I store the node's CheckState value in the node tag, and then some how link the data table and the data in the tag property of all the nodes and then update the source data table manually? It can be done but just wondering if there is a better way so once the nodes and the data table are bound, CheckState changes in these nodes and the data table will happen automatically and the two will be synchronized all the times. If I implement this manually in a round about way I am afraid I will miss some critical steps and mess up something.

Just like DataGrid can be bound to a data table. Is there a similar thing such as binding TreeView control to a data table. MSDN has an example "Extending the TreeView Control" which uses data source but does not go along the path I am trying to go.

Also, the two options I am implementing are mutually exclusive.

John, again, thanks for your help.
GeneralRe: TreeView--Treenode with a Checkbox bound to database Pin
John Fisher22-Apr-05 8:37
John Fisher22-Apr-05 8:37 
GeneralRe: TreeView--Treenode with a Checkbox bound to database Pin
billoo22-Apr-05 9:49
billoo22-Apr-05 9:49 
GeneralRe: TreeView--Treenode with a Checkbox bound to database Pin
John Fisher22-Apr-05 10:30
John Fisher22-Apr-05 10:30 
GeneralSimple Mime / mail messages Pin
ColinBashBash22-Apr-05 4:14
ColinBashBash22-Apr-05 4:14 
GeneralRe: Simple Mime / mail messages Pin
ColinBashBash25-Apr-05 4:00
ColinBashBash25-Apr-05 4:00 
GeneralData Manipulation Pin
Illegal Operation22-Apr-05 3:51
Illegal Operation22-Apr-05 3:51 
GeneralRe: Data Manipulation Pin
turbochimp22-Apr-05 4:11
turbochimp22-Apr-05 4:11 
QuestionHow to set Timeout in a asynchronus WebRequest Pin
User-37793622-Apr-05 3:16
User-37793622-Apr-05 3:16 
GeneralWindows Service dont appear in Service Panel Pin
Adnan Siddiqi22-Apr-05 2:47
Adnan Siddiqi22-Apr-05 2:47 
GeneralRe: Windows Service dont appear in Service Panel Pin
John Fisher22-Apr-05 7:33
John Fisher22-Apr-05 7:33 
GeneralDataset.GetXml() problem Pin
padvit22-Apr-05 2:41
padvit22-Apr-05 2:41 
GeneralOpen a Word Document Pin
fatihsen22-Apr-05 1:52
fatihsen22-Apr-05 1:52 
GeneralRe: Open a Word Document Pin
mav.northwind22-Apr-05 2:11
mav.northwind22-Apr-05 2:11 
GeneralRe: Open a Word Document Pin
fatihsen22-Apr-05 2:21
fatihsen22-Apr-05 2:21 
GeneralRe: Open a Word Document Pin
mav.northwind22-Apr-05 2:28
mav.northwind22-Apr-05 2:28 
GeneralRe: Open a Word Document Pin
fatihsen22-Apr-05 2:38
fatihsen22-Apr-05 2:38 
GeneralRe: Open a Word Document Pin
fatihsen22-Apr-05 3:36
fatihsen22-Apr-05 3:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.