internal void ExcludeFieldFromGrid(string fieldID)
 {
     if (!ExcludeFieldIDs.Contains(fieldID))
     {
         ExcludeFieldIDs.Add(fieldID);
     }
 }
        public List <string[]> GetRowData(bool skipExcludedColumns = false, string[] spacerlabelsleft = null, string locale = "en-US")
        {
            var             fieldIDlist = ContentFullType.Fields.Select(p => p.Id);
            List <string[]> list        = new List <string[]>();

            foreach (var dataline in Entries)
            {
                List <string> row = new List <string>();
                if (spacerlabelsleft != null)
                {
                    foreach (var label in spacerlabelsleft)
                    {
                        row.Add(label);
                    }
                }
                row.Add(dataline.SysID);

                foreach (var fieldid in fieldIDlist)
                {
                    if (skipExcludedColumns && ExcludeFieldIDs.FirstOrDefault(p => p.Equals(fieldid)) != null)
                    {
                        continue;
                    }
                    if (dataline.FieldData.ContainsKey(fieldid))
                    {
                        row.Add(dataline.FieldData[fieldid]);
                    }
                    else
                    {
                        row.Add("");
                    }
                }
                list.Add(row.ToArray());
            }
            return(list);
        }