-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: jimmyblr
Message 4 in Discussion

 
got some more information. my code pasted below. 
Dim dgitm As DataGridItem 
Dim Items() As Integer 
Dim nCount, nSuccess As Integer 
Dim chk As CheckBox 
For Each dgitm In datagrid1.Items 
chk = dgitm.FindControl("chkSelect") 
If chk.Checked = True Then 
ReDim Preserve Items(nCount) 
Items(nCount) = dgitm.Cells(6).Text 
nCount = nCount + 1 
lblError.Text = lblError.Text & dgitm.Cells(1).Text & " " & dgitm.Cells(2).Text 
& " " & dgitm.Cells(6).Text & " " & nCount & "<br>" 
End If 
Next 
the OutPut is 
============== 
     Cell1 Navy 160677 1
Cell2 Navy 160678 1
Cell3 Green 160634 1
1 Items 
======================== 
nCount is not moving above 1. the datagrid has more than 20 items. how many 
ever rows i select ncount is always one. this is only when run from server. if 
i run from Visual Studio, its all fine.

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to