I must be doing something wrong because I am having a really hard time trying to get the value of a check box in edit mode. I want the check box to be disabled if the value is true. With my code as it is now, it is always false. What am I doing wrong?
protected void RadGrid1_Test(object sender, GridItemEventArgs e){ if (e.Item is GridEditFormItem && e.Item.IsInEditMode) { GridEditFormItem edititem = (GridEditFormItem)e.Item; CheckBox movedtobs_chk = edititem["MovedToBS"].Controls[0] as CheckBox; Boolean flag = movedtobs_chk.Checked; //my issue is this flag is always false even when the checkbox is checked. if (flag == true) { movedtobs_chk.Enabled = false; } }}