Ejemplo 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);
        }
Ejemplo n.º 2
0
 public GridControlBase()
 {
     GridDataSource = new GridDataSource();
 }