Esempio n. 1
0
        public GridDefault BuildGridFromDataSource()
        {
            var result     = new GridDefault();
            var dataSource = GridDataSource.GetDataSource();

            if (dataSource is SqlDataSource)
            {
                result = BuildGridFromSqlDataSource(dataSource as SqlDataSource);
            }
            else if (dataSource is ArrayDataSource)
            {
                result = BuildGridFromArrayDataSource(dataSource as ArrayDataSource);
            }

            return(result);
        }
Esempio n. 2
0
 public GridControlBase()
 {
     GridDataSource = new GridDataSource();
 }