私はこのようにします:
if (e.Row.Cells[3].Text != null && e.Row.Cells[3].Text != " "
&& e.Row.Cells[3].Text != "")
{
e.Row.Cells[3].Attributes.Add("readonly", "true");
}
しかし、うまくいきません。セルが空または " " を含む場合、readonly プロパティを true に設定する必要があります。