This is expected behavior. Try using DisplayFormat
attribute.
[DisplayFormat(ConvertEmptyStringToNull=false)]
on top of CompName
property in your model.
For Example:-
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string CompName
{
get { return _compName; }
set { _compName= value; }
}