private void MarkUsedColumns(SimpleDataSetViewer grid, string useColumnName) { try { TableColumn tc = new TableColumn(grid.TableName, useColumnName); grid.SetBackColorByColumns(Color.LightGray, Color.Red, GetRelationColumns(tc)); } catch (Exception ex) { Debug.WriteLine(ex.Message); throw; } }
private void SelectColumn(SimpleDataSetViewer grid, string columnName) { if (string.IsNullOrEmpty(columnName)) { grid.ColumnName = null; return; } TableColumn tc = new TableColumn(columnName); //grid.SetTableColumn(tc); grid.TableName = tc.TableName; grid.ColumnName = tc.ColumnName; }