|
 |
aspx_professional thread: Re: Traversing through the Data grid Data
Message #1 by artimahendra@s... on Thu, 9 Jan 2003 08:00:45
|
|
I Traverse through my datagrid like this:
Dim row As Integer ' the row number in the grid
Dim col As Integer ' the column number you want
Dim val As String ' Value in that cell
col = 1
For row = 0 To gridOpenInvoices.Items.Count - 1
val = gridOpenInvoices.Items(row).Cells(col).Text
Next
HTH
Mitch Spruill
-----Original Message-----
From: artimahendra@s...
[mailto:artimahendra@s...]
Sent: Thursday, January 09, 2003 03:01
To: ASPX_Professional
Subject: [aspx_professional] Re: Traversing through the Data grid Data
Hi,..
I see that ur prob has been posted for long without the reply :)
Anyway - i have just done this - so i am sharing the technique with u.
to retrieve what rows have been checked by the user, u will have to do a
bit of HTML coding..
in the html - specify the value of the check box as the value of the code
or whatever key field in the data set. then ur job will be to wite a java
script function that executes on the click of a button after the user has
checked the boxes and simply iterate thru the loop to finding out which
check boxes are checked and do with the value whatever u wish. In my case
i simply created a comma separated string of the values.
hope this works..
but if u have already landed with a solution to the problem - do share it
with me.
rgds
Arti Mahendra Sharma
|
|
 |