PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Number of rows in a grid....how to determine this????

Reply

Number of rows in a grid....how to determine this????

 
Thread Tools Rate Thread
Old 03-08-2003, 04:36 AM   #1
zsource
Guest
 
Posts: n/a
Default Number of rows in a grid....how to determine this????


Can someone explain to me how I can determine the number
of rows currently loaded into a Grid? I have a Grid and
need to loop through all the rows in the Grid, but can't
seem to find a method/attribute that will tell me how
many rows are in it so that I can construct an
appropriate loop. I'm sure I'm missing something obvious.
  Reply With Quote
Old 03-08-2003, 07:48 AM   #2
Alex Feinman [MVP]
Guest
 
Posts: n/a
Default Re: Number of rows in a grid....how to determine this????

I've answered this one couple of times before

http://groups.google.com/groups?q=I....phx.gbl&rnum=2

http://groups.google.com/groups?q=I....phx.gbl&rnum=1

By the way a better way to walk IList is using foreach statement

"zsource" <mzaremskas@msn.com> wrote in message
news:02ca01c35970$5d54e5c0$a601280a@phx.gbl...
> Can someone explain to me how I can determine the number
> of rows currently loaded into a Grid? I have a Grid and
> need to loop through all the rows in the Grid, but can't
> seem to find a method/attribute that will tell me how
> many rows are in it so that I can construct an
> appropriate loop. I'm sure I'm missing something obvious.



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off