473,761 Members | 8,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4780
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
3905
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 think my logic seems fine but when I click the button on my datagrid nothing seems to happen. Have you any idea where Im going wrong. Was thinking it might have something to do with my page load/ postback but not really sure. Can someone please...
7
455
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 arrayList to the datagrid. private void BindQuestions()
16
6431
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 sorting (because it's ultimately being consumed in a GridView). I can't simply sort the ArrayList (because it only knows it's holding a bunch of objects). So I need a way to sort the ArrayList, based on the data - that is within the objects that...
6
6835
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 internal table and my grid cell share the same border, so noone realizes that there is a table inside my cell? TIA
2
2205
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 first). ex. ArrayList alShoppingCart = shoppingCart.GetCurrentItems; alShoppingCart contains an array list of Item objects.
2
7324
by: Neven Klofutar | last post by:
Hi, How can I bind ArrayList that contains list of myObjects to GridView/DataGrid ? thanx, Neven
4
1787
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 bind that array list into a datagrid in my web app. It works fine, but the columns are out of order. I solved this in my windows application by using DataGridTextBoxColumns. However, I cannot find an equivalent in my web
7
17318
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 either! Does anyone know how can I make this work? Thanks in advance!
1
3278
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 Control to an Array of Objects or Structures by http://support.microsoft.com/?id=315784 316302 HOW TO: Bind a DataGrid Control to an ArrayList of Objects or Structures http://support.microsoft.com/?id=316302
0
9554
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8813
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.