the code below displays System.Object[] in (columnCount) of
my
listview. the arraylist (qResults) consists of objects
which are
arrays, such as: object[] rowArray = new
object[numberOfColumns];
i know it's something trivial, but i'm trying to figure this
out at
4am and i'm half in the bag.
thanks ahead of time folks.....i appreciate any and all
input.
int columnCount = 5;
int nCol = 0;
ListViewItem lvItem;
ArrayList qResults = new ArrayList();
qResults = cBuilder.PCBQuery("ACCESS_DB_CONN",
queryString,
columnCount);
for (int i = 0; i <= qResults.Count; i++)
{
nCol = 0;
lvItem = lvPCB.Items.Add(qResults[nCol++].ToString());
for (; nCol < columnCount; nCol++)
{
lvItem.SubItems.Add(qResults[nCol].ToString());
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C# Community" group.
To post to this group, send email to csharp googlegroups.com
To unsubscribe from this group, send email to
csharp-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/csharp?hl=en
-~----------~----~----~----~------~----~------~--~---
|