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); }
public GridControlBase() { GridDataSource = new GridDataSource(); }