.
private void Form1_Load(object sender, EventArgs e)
{
List<CaclulatedData> tests = new List<CaclulatedData>
{
new CaclulatedData()
{
Bonds = "First Bond",
TransactionList = new List<TransactionData>
{
new TransactionData() {Debit = "DebitData"}
}
},
new CaclulatedData()
{
Bonds = "Second Bond",
TransactionList = new List<TransactionData>
{
new TransactionData() {Debit = "123123"},
new TransactionData() {Debit = "12312", Credit = "3453"}
}
}
};
gridControl1.DataSource = tests;
}
}
public class JEString
{
public string Bonds { get; set; }
}
public class CaclulatedData : JEString
{
public List<TransactionData> TransactionList { get; set; }
}
public class TransactionData
{
public string Debit { get; set; }
public string Credit { get; set; }
}