Click here to Skip to main content
15,903,696 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reduce multiple characters to one, in a string! Pin
Guffa6-May-07 4:25
Guffa6-May-07 4:25 
GeneralRe: Reduce multiple characters to one, in a string! Pin
Adeel Chaudhry6-May-07 4:36
Adeel Chaudhry6-May-07 4:36 
GeneralRe: Reduce multiple characters to one, in a string! Pin
PIEBALDconsult6-May-07 6:52
mvePIEBALDconsult6-May-07 6:52 
AnswerRe: Reduce multiple characters to one, in a string! Pin
PIEBALDconsult6-May-07 4:41
mvePIEBALDconsult6-May-07 4:41 
GeneralRe: Reduce multiple characters to one, in a string! Pin
Adeel Chaudhry6-May-07 4:54
Adeel Chaudhry6-May-07 4:54 
GeneralRe: Reduce multiple characters to one, in a string! Pin
PIEBALDconsult6-May-07 4:57
mvePIEBALDconsult6-May-07 4:57 
AnswerRe: Reduce multiple characters to one, in a string! Pin
AFSEKI7-May-07 2:09
AFSEKI7-May-07 2:09 
QuestionTreeview challenge Pin
Rick van Woudenberg6-May-07 3:07
Rick van Woudenberg6-May-07 3:07 
Dear all,

I have a treeview which I populate from a postgres database. This all works fine, and I'm using the following code :

            DataRow newRow = dt.NewRow();<br />
            dt.Columns.Add("Resources", typeof(System.String));<br />
<br />
            if (dt.Rows.Count > 0)<br />
            {<br />
                treeView1.BeginUpdate();<br />
                foreach (DataRow r in dt.Rows)<br />
                {<br />
                    treeView1.Nodes.Add(new TreeNode(r["res_lastname"].ToString()));<br />
                }<br />
                treeView1.EndUpdate();<br />
            }


Well, I'm not grabbing the data from the database directly but rather through a dataset.
I can add as many rows as I like, just by putting an extra line in , like this :

treeView1.Nodes.Add(new TreeNode(r["res_lastname"].ToString()));<br />
treeView1.Nodes.Add(new TreeNode(r["res_firstname"].ToString()));


Lastname and Firstname show up in the treeview below eachother :

-- Lastname
-- Firstname

Is there a way to show them right next to eachother , like this :

-- Lastname, Firstname

kind regards,

Rick
AnswerRe: Treeview challenge Pin
Arun.Immanuel6-May-07 3:54
Arun.Immanuel6-May-07 3:54 
GeneralRe: Treeview challenge Pin
Rick van Woudenberg6-May-07 4:23
Rick van Woudenberg6-May-07 4:23 
JokeRe: Treeview challenge Pin
PIEBALDconsult6-May-07 5:03
mvePIEBALDconsult6-May-07 5:03 
GeneralRe: Treeview challenge Pin
Rick van Woudenberg6-May-07 9:31
Rick van Woudenberg6-May-07 9:31 
GeneralRe: Treeview challenge Pin
PIEBALDconsult6-May-07 18:18
mvePIEBALDconsult6-May-07 18:18 
QuestionPlugIns - Preventing Malicious Code... Pin
Shy Agam6-May-07 2:49
Shy Agam6-May-07 2:49 
AnswerRe: PlugIns - Preventing Malicious Code... Pin
PIEBALDconsult6-May-07 18:20
mvePIEBALDconsult6-May-07 18:20 
AnswerRe: PlugIns - Preventing Malicious Code... Pin
AFSEKI7-May-07 2:19
AFSEKI7-May-07 2:19 
Questiondot or comma? Pin
Ranger496-May-07 0:26
Ranger496-May-07 0:26 
AnswerRe: dot or comma? Pin
Ranger496-May-07 1:35
Ranger496-May-07 1:35 
AnswerRe: dot or comma? [modified] Pin
DavidNohejl6-May-07 1:59
DavidNohejl6-May-07 1:59 
GeneralRe: dot or comma? Pin
Ranger496-May-07 2:23
Ranger496-May-07 2:23 
AnswerRe: dot or comma? Pin
AFSEKI7-May-07 2:21
AFSEKI7-May-07 2:21 
QuestionSending data from a form to another Pin
OlaMohammed5-May-07 21:42
OlaMohammed5-May-07 21:42 
AnswerRe: Sending data from a form to another Pin
Stefan Troschuetz5-May-07 21:52
Stefan Troschuetz5-May-07 21:52 
AnswerRe: Sending data from a form to another Pin
Sanjib Raj6-May-07 1:35
Sanjib Raj6-May-07 1:35 
AnswerRe: Sending data from a form to another Pin
AFSEKI7-May-07 2:27
AFSEKI7-May-07 2:27 

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.