Click here to Skip to main content
15,921,905 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to sort a big volume of data? Pin
snorkie29-Aug-07 8:38
professionalsnorkie29-Aug-07 8:38 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik29-Aug-07 8:53
michal.kreslik29-Aug-07 8:53 
GeneralRe: How to sort a big volume of data? Pin
snorkie29-Aug-07 9:06
professionalsnorkie29-Aug-07 9:06 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik29-Aug-07 9:36
michal.kreslik29-Aug-07 9:36 
GeneralRe: How to sort a big volume of data? Pin
Spacix One29-Aug-07 10:30
Spacix One29-Aug-07 10:30 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik29-Aug-07 19:32
michal.kreslik29-Aug-07 19:32 
GeneralRe: How to sort a big volume of data? Pin
Spacix One30-Aug-07 4:28
Spacix One30-Aug-07 4:28 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik30-Aug-07 4:43
michal.kreslik30-Aug-07 4:43 
GeneralRe: How to sort a big volume of data? Pin
Thomas Krojer2-Sep-07 22:46
Thomas Krojer2-Sep-07 22:46 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik3-Sep-07 6:06
michal.kreslik3-Sep-07 6:06 
GeneralRe: How to sort a big volume of data? Pin
Thomas Krojer3-Sep-07 23:49
Thomas Krojer3-Sep-07 23:49 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik4-Sep-07 0:10
michal.kreslik4-Sep-07 0:10 
GeneralRe: How to sort a big volume of data? Pin
Thomas Krojer18-Sep-07 23:00
Thomas Krojer18-Sep-07 23:00 
GeneralRe: How to sort a big volume of data? Pin
michal.kreslik18-Sep-07 23:17
michal.kreslik18-Sep-07 23:17 
GeneralRe: How to sort a big volume of data? Pin
Thomas Krojer19-Sep-07 0:31
Thomas Krojer19-Sep-07 0:31 
Questiondynamically creating forms from db Pin
algoaddict29-Aug-07 4:53
algoaddict29-Aug-07 4:53 
Questionword document to xml document Pin
sk840529-Aug-07 4:43
sk840529-Aug-07 4:43 
AnswerRe: word document to xml document Pin
led mike29-Aug-07 5:10
led mike29-Aug-07 5:10 
JokeRe: word document to xml document Pin
Spacix One29-Aug-07 8:28
Spacix One29-Aug-07 8:28 
AnswerRe: word document to xml document Pin
ekynox29-Aug-07 21:43
ekynox29-Aug-07 21:43 
QuestionHow to treat with treeview check box Pin
huss Aldin29-Aug-07 3:29
huss Aldin29-Aug-07 3:29 
AnswerRe: How to treat with treeview check box Pin
I Believe In GOD29-Aug-07 11:00
I Believe In GOD29-Aug-07 11:00 
I can help you by making parent node and child node in one table

and the code will be

public void LoadItems2Tree (TreeNode parentnode , int ParentID)<br />
		{<br />
			DataCommand = new SqlCommand();<br />
			DataCommand.CommandText = "SELECT * FROM Items WHERE ParentID = @ParentID ORDER BY ItemID " ;<br />
			DataCommand.Connection = Connection.SqlCon;<br />
			<br />
			DataParam = DataCommand.Parameters.Add ("@ParentID",SqlDbType.Int);<br />
			DataParam.Value = ParentID;	<br />
<br />
			foreach (DataRow Dr in QueryResult(DataCommand).Tables[0].Rows)<br />
			{<br />
				TreeNode MyNode = new TreeNode(Dr["ItemName"].ToString());<br />
				MyNode.Tag = (int)Dr["ItemID"];<br />
				parentnode.Nodes.Add (MyNode);<br />
				LoadItems2Tree (MyNode , (int)Dr["ItemID"] );<br />
			}<br />
		}<br />
<br />
<br />
public DataSet QueryResult (SqlCommand SqlQuery)<br />
		{<br />
			DataSet DaSet = new DataSet();<br />
			DataAdapter = new SqlDataAdapter(SqlQuery);<br />
			DaSet = new DataSet();<br />
			DataAdapter.Fill(DaSet , "DataTable");<br />
			return DaSet;<br />
		}<br />
<br />


remmber one table only , and for the check boxes , may be you can find it in treeview properties

Kind Regards



I know nothing , I know nothing

QuestionPrint to POS Printer on serial port Pin
Tavbi29-Aug-07 3:00
Tavbi29-Aug-07 3:00 
AnswerRe: Print to POS Printer on serial port Pin
originSH29-Aug-07 3:28
originSH29-Aug-07 3:28 
GeneralRe: Print to POS Printer on serial port Pin
Tavbi29-Aug-07 19:57
Tavbi29-Aug-07 19:57 

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.