how can i refactor this code down to one method or something?
if (!string.IsNullOrEmpty(_gridModel.Header))
_gridModel.Header += ",";
if (item != null)
_gridModel.Header += item.Header;
if (!string.IsNullOrEmpty(_gridModel.Width))
_gridModel.Width += ",";
if (item != null)
_gridModel.Width += item.Width;
if (!string.IsNullOrEmpty(_gridModel.Align))
_gridModel.Align += ",";
if (item != null)
_gridModel.Align += item.Align;
if (!string.IsNullOrEmpty(_gridModel.Filter))
_gridModel.Filter += ",";
if (item != null)
_gridModel.Filter += item.Filter;
if (!string.IsNullOrEmpty(_gridModel.Type))
_gridModel.Type += ",";
if (item != null)
_gridModel.Type += item.Type;
if (!string.IsNullOrEmpty(_gridModel.Sort))
_gridModel.Sort += ",";
if (item != null)
_gridModel.Sort += item.Sort;