473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 4755
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Stephen | last post by:
I have got an event below to remove items from an arraylist and then to rebind the arraylist to the datagrid subsequently deleting the appropriate row. My problem is that my code makes sense and I...
7
by: Alex Ting | last post by:
Hi Everybody, I have an issue about deleting an object from an arrayList. I've bounded a datagrid using this code where it will first run through all of the code in loadQuestions() and bind a...
16
by: RCS | last post by:
So I have an ArrayList that gets populated with objects like: myAL.Add(new CustomObject(parm1,parm2)); I'm consuming this ArrayList from an ObjectDataSource and would like to have this support...
6
by: Edge | last post by:
hi all, I added a html table with 2 rows inside the itemtemplate of my gridview. It works ok, but the table border never touches the border of my gridview cell. How should I do if I want the...
2
by: maflatoun | last post by:
Hi, I'm wondering if there is a way to bind to datagrid or a gridview the items in an arraylist. These items all have vars such as price, qty..etc? (besides putting in a datagrid or datatable...
2
by: Neven Klofutar | last post by:
Hi, How can I bind ArrayList that contains list of myObjects to GridView/DataGrid ? thanx, Neven
4
by: Doug | last post by:
Hi, I am having the same problem I had a while back with a windows app but now in a web application. I need to take the results of a data query and dump them into an arraylist. I then need to...
7
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi all! I have a gridview inside a datagrid (nested) for which (gridview) the rowcommand is not raised in order to delete a row from the grid! I also tried OnRowCommand="method", didn't work...
1
by: =?Utf-8?B?SmF5Qw==?= | last post by:
I am trying to understand how to use an arraylist that contains data in a structure and bind the results to a gridview. Using vs2008 I have looked at the examples 315784 HOW TO: Bind a DataGrid...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.