Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing vb.net class object to c# class method Pin
Robert Rohde25-Oct-06 19:21
Robert Rohde25-Oct-06 19:21 
QuestionRe: Passing vb.net class object to c# class method Pin
pdeep25-Oct-06 19:27
pdeep25-Oct-06 19:27 
AnswerRe: Passing vb.net class object to c# class method Pin
Colin Angus Mackay26-Oct-06 0:42
Colin Angus Mackay26-Oct-06 0:42 
GeneralRe: Passing vb.net class object to c# class method Pin
Robert Rohde26-Oct-06 6:13
Robert Rohde26-Oct-06 6:13 
QuestionLoading a dataset into an array. Pin
teejayem25-Oct-06 17:35
teejayem25-Oct-06 17:35 
AnswerRe: Loading a dataset into an array. Pin
Robert Rohde25-Oct-06 19:24
Robert Rohde25-Oct-06 19:24 
AnswerRe: Loading a dataset into an array. Pin
ednrgc26-Oct-06 4:07
ednrgc26-Oct-06 4:07 
GeneralRe: Loading a dataset into an array. Pin
teejayem26-Oct-06 5:28
teejayem26-Oct-06 5:28 
yeah i am defining a string array without a limit to hold items:
string[] xmldata;

What i'm wanting to do is load an xml into an array then edit the array then once satisfied with the array i am going to write the array into an xml document. When i directly load the listview it loads properly with the code below

     private void Load_Xml()
{
    DataSet ds = new DataSet();
    ds.ReadXml(filePath);

    foreach (DataRow r in ds.Tables[0].Rows)
    {
        ListViewItem lvindex = new ListViewItem(r.ItemArray[0].ToString());
        ListViewItem.ListViewSubItem sublvindex = new ListViewItem.ListViewSubItem(lvindex, r.ItemArray[1].ToString());
        lvindex.SubItems.Add(sublvindex);
        sublvindex = new ListViewItem.ListViewSubItem(lvindex, r.ItemArray[2].ToString());
        lvindex.SubItems.Add(sublvindex);
        lv_xmlList.Items.Add(lvindex);
    }
}






Don't be overcome by evil, but overcome evil with good

GeneralRe: Loading a dataset into an array. Pin
ednrgc26-Oct-06 5:34
ednrgc26-Oct-06 5:34 
QuestionAbout taskbar Pin
fachozo25-Oct-06 16:17
fachozo25-Oct-06 16:17 
AnswerRe: About taskbar [modified] Pin
quiteSmart25-Oct-06 19:37
quiteSmart25-Oct-06 19:37 
AnswerRe: About taskbar Pin
Nader Elshehabi25-Oct-06 21:19
Nader Elshehabi25-Oct-06 21:19 
Questionread a cd rom as a whole Pin
Iv0125-Oct-06 13:51
Iv0125-Oct-06 13:51 
AnswerRe: read a cd rom as a whole Pin
led mike25-Oct-06 13:59
led mike25-Oct-06 13:59 
AnswerRe: read a cd rom as a whole Pin
Nader Elshehabi25-Oct-06 21:14
Nader Elshehabi25-Oct-06 21:14 
QuestionNewbie: Question about ListViews? Pin
Phillip Hodges25-Oct-06 12:45
Phillip Hodges25-Oct-06 12:45 
AnswerRe: Newbie: Question about ListViews? Pin
led mike25-Oct-06 12:59
led mike25-Oct-06 12:59 
GeneralRe: Newbie: Question about ListViews? Pin
Phillip Hodges25-Oct-06 13:04
Phillip Hodges25-Oct-06 13:04 
GeneralRe: Newbie: Question about ListViews? Pin
led mike30-Oct-06 7:57
led mike30-Oct-06 7:57 
QuestionHow can I get the maximum length of a string that will fit into a textbox Pin
Dan Neely25-Oct-06 10:25
Dan Neely25-Oct-06 10:25 
AnswerRe: How can I get the maximum length of a string that will fit into a textbox Pin
led mike25-Oct-06 11:24
led mike25-Oct-06 11:24 
Questionhow do I binary search a struct array? Pin
kshet2625-Oct-06 10:23
kshet2625-Oct-06 10:23 
AnswerRe: how do I binary search a struct array? Pin
Guffa25-Oct-06 11:22
Guffa25-Oct-06 11:22 
GeneralRe: how do I binary search a struct array? Pin
kshet2625-Oct-06 11:47
kshet2625-Oct-06 11:47 
AnswerRe: how do I binary search a struct array? Pin
Guffa25-Oct-06 12:08
Guffa25-Oct-06 12:08 

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.