Hello,
i have class which hold product data
public class cProductData
{
public int prodID = -1;
public string Name = "";
public decimal Cost = 0;
public decimal Weight = 0;
public int Calories = 0;
public int count = 0;
//shortened here
}
i gather data here public Dictionary<string, Dictionary<string, cProductData>> PortionsAll { get; set; }
where
1) key in outer Dictionary is productname
2) key in the inner dictionary is date
3) value in the inner dictionary is product.weight.tostring ()
basically, i want to have a grid, where
left column cells are 1 ( productdata.name,)
toprow cells are 2 (date)
and cell value is 3 (product weight )
with standard xamarin grid i just create it programmatically
now i am trying to use sfdatagrid and bind this structure
for the sake of simplicity i converted the above data to
public List<List<string>>SFData { get; set; }
(also tried List<string [] > )
but i am getting columns mapped to list properties (see attached file) . what i am doing wrong ? :)
sincerely
ilya
Attachment:
20181226_131541_81920aaf.zip