-
July 26th, 2010, 10:41 AM
#1
Loop through the value in Datagrid
Hi,
I have to loop through each record in the Datagrid irrespective of the recordset.
Please help me.
-
July 26th, 2010, 11:39 AM
#2
Re: Loop through the value in Datagrid
Either the grid is bound to the data, or it is unbound. If the latter, you should have your recordset in memory, so looping thru a collection or array is the answer
-
July 26th, 2010, 05:24 PM
#3
Re: Loop through the value in Datagrid
In the DataGrid the rows are your records.
So if you want to iterate through the rows You can dO:
Code:
Dim i%
For i=0 (or 1 if you have a fixed row) To Grid.Rows
'do something with the row
'for instance Grid.TextMatrix(i, 0) is the text in column 0 of each row.
Next
At least that applies for the MSHFlexGrid. I think DataGrid is the same in this respect.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|