private void Form1_Load(object sender, System.EventArgs e) { // create a list of rectangles ArrayList al = new ArrayList(); for (int i = 0; i < 1000; i++) { al.Add(new Margins(i, i, i, i)); } // create a data source ListDataSource lds = new ListDataSource(al); // assign data source to grids _flex.DataSource = lds; dataGrid1.DataSource = lds; }
internal ListPropertyDescriptor(ListDataSource ds, PropertyDescriptor pd) : base(pd.Name, null) { _ds = ds; _pd = pd; }
public ListDataItem(ListDataSource ds, object value) { _ds = ds; _value = value; }