Make(cnet) ver(4.04 build 185) Add(EntryPoint,2953706,21,84) { Width=338 Height=218 Platform=1 link(onCreate,13226933:doData,[]) link(onError,7341542:doShow,[]) } Add(DataGridView,10949420,154,77) { Left=5 Top=5 Width=325 Height=185 Anchor=15 Dock=5 Columns=[] Point(doConstructor) Point(doDataSource) Point(onDataError) Point(onCellValueChanged) } Add(BindingSource,8555441,105,42) { DataSource=#33:using System.Collections.Generic;|27:using System.Windows.Forms;|0:|20:namespace InlineCode|1:{|16: class Datatable|2: {|29: private object _dataSource;|0:|20: public Datatable()|3: {|36: var source = new BindingSource();|95: List list = new List { new MyStruct("a", "b"), new MyStruct("c", "d") };|28: source.DataSource = list;|24: _dataSource = source;|3: }|0:|26: public object DataSource|3: {|6: get|4: {|23: return _dataSource;|4: }|3: }|2: }|0:|15: class MyStruct|2: {|34: public string Name { get; set; }|37: public string Address { get; set; }|0:|46: public MyStruct(string name, string address)|3: {|15: Name = name;|21: Address = address;|3: }|2: }|1:}|0:|0:| Point(doDataSource) Point(.DataSource) } Add(DoData,13226933,105,84) { link(onEventData,10949420:doDataSource,[]) link(Data,8555441:BindingSource,[]) } Add(MessageBox,7341542,63,91) { }