S
Samuel Chowdhuri
this peace of code is giving me trouble
DIM i as DataGridItem
for each i in myDataGrid
checkbox chkbox = Ctype(i.findcontrol("deletethis"),checkbox)
if(chkbox.checked) then
......
.....
Compiler Error: Value of type 'System.Web.UI.Control' cannot be converted to
'System.Windows.Forms.CheckBox'.
Alternatively I have tried
chkbox = Ctype(i.cells(0).control(1),checkbox)
if(chkbox.checked) then
......
.....
Compiler Error: Value of type 'System.Web.UI.Control' cannot be converted to
'System.Windows.Forms.CheckBox'.
How can I overcome this, i need to be able to see if the checkbox is checked
in order to delete the respective rows
Thanx
Sam
DIM i as DataGridItem
for each i in myDataGrid
checkbox chkbox = Ctype(i.findcontrol("deletethis"),checkbox)
if(chkbox.checked) then
......
.....
Compiler Error: Value of type 'System.Web.UI.Control' cannot be converted to
'System.Windows.Forms.CheckBox'.
Alternatively I have tried
chkbox = Ctype(i.cells(0).control(1),checkbox)
if(chkbox.checked) then
......
.....
Compiler Error: Value of type 'System.Web.UI.Control' cannot be converted to
'System.Windows.Forms.CheckBox'.
How can I overcome this, i need to be able to see if the checkbox is checked
in order to delete the respective rows
Thanx
Sam