private TableEditorGrid CreateGrid() { var grid = new TableEditorGrid { RowManager = new RowManager() }; grid.DoubleBuffered(true); grid.CurrentCellBorderColor = Color.LightGreen; Controls.Add(grid); return(grid); }
private void UpdateDatasourceCore(TableEditorGrid grid, IFeatureSet fs) { var manager = grid.RowManager; int cmnIndex = manager.SortColumnIndex; bool ascending = manager.SortAscending; grid.SetTableSource(fs, grid.LayerHandle, grid.IsOgr); if (cmnIndex != -1) { grid.SortByColumn(cmnIndex, ascending); } }
public FindReplaceModel(TableEditorGrid grid, ILegendLayer layer, bool replace) { if (grid == null) { throw new ArgumentNullException("grid"); } if (layer == null) { throw new ArgumentNullException("layer"); } Grid = grid; Replace = replace; Table = layer.FeatureSet.Table; SearchInfo = new SearchInfo(); _layerName = layer.Name; }
public TablePanelInfo(TableEditorGrid grid, ILegendLayer layer, ITablePanel panel) { if (grid == null) { throw new ArgumentNullException("grid"); } if (layer == null) { throw new ArgumentNullException("layer"); } if (panel == null) { throw new ArgumentNullException("panel"); } Grid = grid; Layer = layer; Panel = panel; }