Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 internal ListPropertyDescriptor(ListDataSource ds, PropertyDescriptor pd) : base(pd.Name, null)
 {
     _ds = ds;
     _pd = pd;
 }
Exemplo n.º 3
0
 public ListDataItem(ListDataSource ds, object value)
 {
     _ds    = ds;
     _value = value;
 }