add to 2 dimensional arraylist

J

j-in-uk

Hi,

I want to add index and total to the arrayList, any ideas how i should
do that? I think i have to declare a 2 dimensional arraylist
I want to also be able to find using contains in a two dimensional
array


ArrayList IDList = new ArrayList[];
foreach (GridViewRow row in gvAttachmts.Rows )
{
index = (int)gvAttachmts.DataKeys[row.RowIndex].Value;
double Total = Convert.ToDouble(row1.Cells[8].Text);

if (Session
!= null)
IDList = (ArrayList)Session
;

if (result)
{
if (!IDList.Contains(index))
IDList.Add(index);
}
else
IDList.Remove(index);
}
 

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