private static bool CanUseThisControl(DS_HT_PHAN_QUYEN_DETAIL iDS, string iFormName, string iControlName) { string filterExpression = "FORM_NAME = '" + iFormName + "' AND CONTROL_NAME = '" + iControlName + "'" + " AND VISIBLE_YN = 'Y'"; if (iDS.HT_PHAN_QUYEN_DETAIL.Select(filterExpression).Length > 0) { return true; } return false; }