我有以下课程:
[System.Serializable]
public class CarParts
{
public string PartId { get; set; }
public int PartCost { get; set; }
public Button Edit{ get; set; }
}
我想做的是:
List<CarParts> parts = new List<CarParts>();
(fill parts)
m_StockParts.Columns.Add()//map column to 'Edit'
m_StockParts.Columns.Add()//map column to 'PartId'
m_StockParts.Columns.Add()//map column to 'PartCost'
我该怎么做呢?