private RepositoryItemCheckEdit CreateCheckEdit(object value) { var ri = new RepositoryItemCheckEdit(); try { // you can cache your items here ri.Assign(rceCheck); ri.LockEvents(); if (value.ToString().Equals("Y")) { //Uncheck ri.Enabled = true; ri.ValueChecked = "Y"; } else if (value.ToString().Equals("N")) { //Uncheck ri.Enabled = true; ri.ValueUnchecked = "N"; } return ri; } catch (Exception ex) { // Logger.Error(ex); } return ri; }