arraylist inside an arraylist for datagrid, gridview

R

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.
 
M

Michael Nemtsev

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
 
R

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.
 
M

Michael Nemtsev

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>---
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
 
R

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top