asp.net - getting checked checkbox out of grid -
i have checkboxes @ grid header row.
i wanted find checkboxes clicked.
my check boxes named :
chk1 chk2 chk3 chk4
chk common , 1,2,3,4 gets increament per column.
to checked box,i did following code:
for integer = 0 gvsearch.columns.count - 1 if ctype(gvsearch.headerrow.findcontrol("chk"& i+1 ,checkbox).checked) 'some logic end if next
but, ctype(gvsearch.headerrow.findcontrol("chk"& i+1 ,checkbox).checked)
giving me error as:
syntax error in cast operator;two arguments separated comma required.
please me.
your brackets placed incorrect
ctype(gvsearch.headerrow.findcontrol("chk"& i+1),checkbox).checked
Comments
Post a Comment