Home All Groups Group Topic Archive Search About
Author
27 Dec 2006 9:21 AM
Trevor
Please can someone help me.
I have a small project that I want to do but I am having problems
trying to figure out how to do this.
I have created a small application that take numbers that I give it and
stores it in an XML file but also has a page number and line number as
2 seperate comboboxes.
I take the page and the line and put that together to create the parent
node which will look like this:

page: A
Line:1

<A1>
<Line1>first line of information</Line1>
<Line2>second line of information</Line2>
</A1>

I then want to be able to be able to read this xml and put it into a
listbox but I want to be able to have the listbox like below:

Page(as one coumn)          Line(as another column)      Line1
Line2     Line3

I did have a project before where I was able to split the listbox into
all of these multiple columns but I cannot seem to find it right now.
So any help will be appreciated.

Also if possible I want to be able to search the listbox so if there is
6 lines of information defined I would like to search through all the
entries to see which entries have more than 3 of the same entries.

Thanking you in advance

Author
27 Dec 2006 5:44 PM
Kerry Moorman
Trevor,

I would consider using a listview control or one of the datagrid-type
controls, instead of a listbox.

Kerry Moorman


Show quoteHide quote
"Trevor" wrote:

> Please can someone help me.
> I have a small project that I want to do but I am having problems
> trying to figure out how to do this.
> I have created a small application that take numbers that I give it and
> stores it in an XML file but also has a page number and line number as
> 2 seperate comboboxes.
> I take the page and the line and put that together to create the parent
> node which will look like this:
>
> page: A
> Line:1
>
> <A1>
> <Line1>first line of information</Line1>
> <Line2>second line of information</Line2>
> </A1>
>
> I then want to be able to be able to read this xml and put it into a
> listbox but I want to be able to have the listbox like below:
>
> Page(as one coumn)          Line(as another column)      Line1
> Line2     Line3
>
> I did have a project before where I was able to split the listbox into
> all of these multiple columns but I cannot seem to find it right now.
> So any help will be appreciated.
>
> Also if possible I want to be able to search the listbox so if there is
> 6 lines of information defined I would like to search through all the
> entries to see which entries have more than 3 of the same entries.
>
> Thanking you in advance
>
>
Author
28 Dec 2006 7:56 AM
Trevor
Thank you very much for the advise on the Listview

If I put it onto the details view I can get a sort of grid view with
column header which is perfect.

However could you possibley help with the code to do the searching
through the xml
both for input into the listview and to later search against the
entries?
I will sit with it a bit to see if I can figure it out myself but any
help would appreciated.

Trevor


Kerry Moorman wrote:
Show quoteHide quote
> Trevor,
>
> I would consider using a listview control or one of the datagrid-type
> controls, instead of a listbox.
>
> Kerry Moorman