private void InitAttachmentGrid() { var eqptAttachmentBll = new BLL.EqptAttachment(); _eqptAttachments = eqptAttachmentBll.GetModelListWithoutAttachment(String.Format("SmId = {0} and LayerName = '{1}'", _smId, _layerInfo.LayerName)); gc_Attachment.DataSource = _eqptAttachments; }