adeelahmed
Apr 13th, 2005, 04:43 AM
Hi
I've added template column in my datagrid and have added checkbox in it.
while getting checkvalue from the checkbox, it is always showing checkbox.check=false , though it is checked
------------------------------------------------------
Dim dgi As DataGridItem
Dim StrpccID As String
For Each dgi In dgCTrack.Items
Dim ChkSelected As CheckBox
ChkSelected = CType(dgi.FindControl("cbpcc"), CheckBox)
If ChkSelected.Checked = True Then
StrpccID += CType(dgi.Cells(1).FindControl("lblPCCID"), Label).Text & ","
End If
Next
Session("PCCList") = StrpccID
--------------------------------------------------------
I've added template column in my datagrid and have added checkbox in it.
while getting checkvalue from the checkbox, it is always showing checkbox.check=false , though it is checked
------------------------------------------------------
Dim dgi As DataGridItem
Dim StrpccID As String
For Each dgi In dgCTrack.Items
Dim ChkSelected As CheckBox
ChkSelected = CType(dgi.FindControl("cbpcc"), CheckBox)
If ChkSelected.Checked = True Then
StrpccID += CType(dgi.Cells(1).FindControl("lblPCCID"), Label).Text & ","
End If
Next
Session("PCCList") = StrpccID
--------------------------------------------------------