예제 #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);
        }
예제 #2
0
 public GridControlBase()
 {
     GridDataSource = new GridDataSource();
 }