How to detect if checkbox is checked or not
Paul Witmond
Hi,I have a grid with a checkbox column
My question :
How can i found out if the row is checked or not ?
Grid grd = Grid.GetFromUID(ev.Form , "grid");
if (artgrp.GetValue("Checkbox", 0).ToString() == "Y") {// code for checked}
if (artgrp.GetValue("Checkbox", 0).ToString() == "N") {// code for not checked }
Does anyone has a working piece of code ?
Thanks,
Paul
Anders Olsson
Hi Paul,What you're doing is basically correct, but are you checking the right grid?
Your grid object is grd but then you check the artgrp grid. Is it a typo?
Regards,
Anders
Raphael Strotz
For a grid the getvalue methode is the only fast and working way i know..Read out your Grid..
Then read out the value of the specific column .. check which value means that it's checkend and which one means that it's not checked.
Then just compare those values.
0
Please sign in to leave a comment.
Comments
0 comments