Question: I found many similar questions and answers but none help me to solve my issue.

Here is a screenshot of my application where i'm facing this problem
[dataGridView with buttoncell](http://i.stack.imgur.com/Ci8fw.png)

I want to disable(or not clickable) the button if the button text says "ACCEPTED",
here is what i have and that is not working 

```
        private void Cellcontent()
    {
        foreach (DataGridViewRow row in dataGridView1.Rows)
        {
            if ((row.Cells["Status"].Value.ToString()) == "ACCEPTED")
            {
                DataGridViewButtonCell cell = row.Cells["Status"] as DataGridViewButtonCell;
                cell.ReadOnly = true; //if 1 cell will be disabled (not clickable)

            }
        }
    }

```

Answer: 
`NSStringCompareOptions` also has a `DiacriticInsensitiveSearch` you can use (in the same way as the case insensitive).
or you can make normalize string

```
extension String {

func normalizeArabic() -> String {
    let newString = NSMutableString(string: self) as CFMutableString
    CFStringTransform(newString, nil, kCFStringTransformLatinArabic, Bool(truncating: 0))
    CFStringTransform(newString, nil, kCFStringTransformStripCombiningMarks, Bool(truncating: 0))
    return newString as String
}}

```