List Info

Thread: instead of the strings i expect?




instead of the strings i expect?
country flaguser name
United States
2007-02-11 00:10:50
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 csharpgooglegroups.com
To unsubscribe from this group, send email to
csharp-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/csharp?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )