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

C#

 
Generalwindow service Pin
hareluya22-Apr-05 5:58
hareluya22-Apr-05 5:58 
GeneralRe: window service Pin
John Fisher22-Apr-05 8:00
John Fisher22-Apr-05 8:00 
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 
I have a treeview control. I was able to generate the tree nodes for this treeview control by reading the structure of the tree from a database table. At each treenode, I show a check box (CheckBoxes is true). On the Sql Server Side, I have a table which has the following structure:

TreeStruct (NodeID int, NodeDesc varchar(50), NodeState tinyint)

This table is pre populated with information in the order in which the tree will be constructed.

I want to be able to do the following:

(a) whenever the CheckState property changes (i.e., a user Checks/Unchecks a node, I want to commit the change to the database
(b) Let the user make as many changes as possible to the Checkboxes, which will change the CheckState property of the nodes. When the user is done, he/she can press the save button, and all these changes will be written to the database.

I also have an update command in the SqlDataAdapter, which is fetching the data.

So, currently I am looping in a for loop to populate the tree nodes. This process succeeds. But now for users to check/uncheck these check boxes and for me to update the CheckState of these tree nodes, I need to be able to capture these state changes in the data table from where I read the data, and commit these changes to the database.

I am not sure how to bind the data I read from the database to the TreeNode(s) so that I can make the above two things happen.

Help appreciated.
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 
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 

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.