?
Solved

DataGrid Iteration

Posted on 2005-03-25
3
Medium Priority
?
800 Views
Last Modified: 2013-12-27
I have a SmartDevice app with a datagrid.  I have set the datagrid's datasource to a dataset.  I want to know how to iterate through the data grid row by row but I can't find a "rowcount" property or anything else to do this. This seems like it should be pretty simple.......Any help would be appreciated

I am using VB.Net

i.e.

for 1=0 to 'rowcount'
'do something here
next


0
Comment
Question by:PSCTECH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Expert Comment

by:nonubik
ID: 13642126
You can use Items property to get a DataGridItemCollection class and the its Count property.

for 1=0 to Items.Count
0
 

Author Comment

by:PSCTECH
ID: 13643182
This doesn't work in CF. there is no item(s) property only item for the current item.  It may work in full blown vb but on a SmartDevice it doesn't seem to.
0
 
LVL 16

Accepted Solution

by:
nonubik earned 2000 total points
ID: 13643229
Then take a look here: http://msdn.microsoft.com/smartclient/community/cffaq/cf10.aspx at the last question from 'DataGrid' paragraph.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to setup the internet connectivity on Windows Mobile Emulator.   I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studi…
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question