469,883 Members | 1,177 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,883 developers. It's quick & easy.

arraylist inside an arraylist for datagrid, gridview

rjl
Is there a way to assign an arraylist inside an arraylist as a column?

i have arrayList list, which has 2 Strings and an arrayList with 3
values.
I would like the following columns then in a datagrid or gridview:

string1, string2, (these next 3 in arrayList) listHeader1, listHeader2,
listHeader3

thanks for any help.

Apr 12 '06 #1
4 4584
Hello rjl,

What do u want to get? Show composite data in the second column or show data
hierarchically?

If only for showing, just combine data in one string.
For hiearachy u need master-detail dependency

r> Is there a way to assign an arraylist inside an arraylist as a
r> column?
r>
r> i have arrayList list, which has 2 Strings and an arrayList with 3
r> values.
r> I would like the following columns then in a datagrid or gridview:
r> string1, string2, (these next 3 in arrayList) listHeader1,
r> listHeader2, listHeader3
r>
r> thanks for any help.
r>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Apr 12 '06 #2
rjl
Thanks for your reply. I will do it in one string, but what is a
composite data? maybe that is what I need.
thanks again.

Michael Nemtsev wrote:
Hello rjl,

What do u want to get? Show composite data in the second column or show data
hierarchically?

If only for showing, just combine data in one string.
For hiearachy u need master-detail dependency

r> Is there a way to assign an arraylist inside an arraylist as a
r> column?
r>
r> i have arrayList list, which has 2 Strings and an arrayList with 3
r> values.
r> I would like the following columns then in a datagrid or gridview:
r> string1, string2, (these next 3 in arrayList) listHeader1,
r> listHeader2, listHeader3
r>
r> thanks for any help.
r>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


Apr 13 '06 #3
Hello rjl,

I mean that just create one string from several ones

r> Thanks for your reply. I will do it in one string, but what is a
r> composite data? maybe that is what I need.
r> thanks again.
r> Michael Nemtsev wrote:
r>
Hello rjl,

What do u want to get? Show composite data in the second column or
show data hierarchically?

If only for showing, just combine data in one string. For hiearachy u
need master-detail dependency

r> Is there a way to assign an arraylist inside an arraylist as a
r> column?
r>
r> i have arrayList list, which has 2 Strings and an arrayList with 3
r> values.
r> I would like the following columns then in a datagrid or gridview:
r> string1, string2, (these next 3 in arrayList) listHeader1,
r> listHeader2, listHeader3
r>
r> thanks for any help.
r>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Apr 13 '06 #4
rjl
Micheal,
thansk for the help. let me ask you this. how would you do the
following? the key issue is I do not know how many dates their will be
in the xml file I will parse into an object, but I want to make a
column for name, position, date1, date2, date3.

customerRecord;
String name;
String position;
ArrayList dates (this will have unkown amount of dates)
dates will just have a single String (ideally I would also like to have
another string with the column header).

the datagrid will have the following columns then:
name | position | date1 | date2 ...
thanks for any help.

Michael Nemtsev wrote:
Hello rjl,

I mean that just create one string from several ones

r> Thanks for your reply. I will do it in one string, but what is a
r> composite data? maybe that is what I need.
r> thanks again.
r> Michael Nemtsev wrote:
r>
Hello rjl,

What do u want to get? Show composite data in the second column or
show data hierarchically?

If only for showing, just combine data in one string. For hiearachy u
need master-detail dependency

r> Is there a way to assign an arraylist inside an arraylist as a
r> column?
r>
r> i have arrayList list, which has 2 Strings and an arrayList with 3
r> values.
r> I would like the following columns then in a datagrid or gridview:
r> string1, string2, (these next 3 in arrayList) listHeader1,
r> listHeader2, listHeader3
r>
r> thanks for any help.
r>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


Apr 13 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Alex Ting | last post: by
6 posts views Thread by Edge | last post: by
2 posts views Thread by Neven Klofutar | last post: by
4 posts views Thread by Doug | last post: by
7 posts views Thread by =?Utf-8?B?cGF0cmlja2RyZA==?= | last post: by
1 post views Thread by =?Utf-8?B?SmF5Qw==?= | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.