Skip to main content

columnspanel-class

The panel for defining the results columns for Korzh.EasyQuery.WinForms.QueryPanel.

public class Korzh.EasyQuery.WinForms.ColumnsPanel
: XPanel

Assembly: Korzh.EasyQuery.WinForms.dll

Constructors

NameTypeDescription
ColumnsPanel()voidInitializes a new instance of the Korzh.EasyQuery.WinForms.ColumnsPanel class.

Properties

NameTypeDescription
ActiveboolGets or sets a value indicating whether this Korzh.EasyQuery.WinForms.ColumnsPanel is active.
AllowAggrColumnsboolGets or sets the ability to create the columns with aggregation functions.
AllowEditCaptionsboolGets or sets the ability to show column captions in the control.
AllowSortingboolGets or sets the ability to change the sort order of columns.
AppearanceColumnsPanel.ColumnsPanelViewOptionsGets the Korzh.EasyQuery.WinForms.ColumnsPanel.ColumnsPanelViewOptions object.
ColumnsQueryColumnStoreGets the columns list of the concerned Korzh.EasyQuery.WinForms.ColumnsPanel.Query.
EditModeColumnsPanelEditModeGets or sets the value of panel's edit mode.
JustSortedColumnsQueryColumnStoreGets the list of columns that are sorted but are not used in result.
ModelDataModelGets the Korzh.EasyQuery.DataModel object
QueryQueryGets or sets the query.
RowsColumnRowListGets list of column rows.
SortedColumnsSortedColumnListGets the list of sorted columns

Events

NameTypeDescription
RowListChangedEventHandlerOccurs when list of rows is changed

Methods

NameTypeDescription
Activate()voidActivates the panel. Korzh.EasyQuery.WinForms.ColumnsPanel.Active property becomes true.
AddRowByColumn(QueryColumn column)voidAdds the new row by .
AddSimpleColumn()voidAdds the simple column using the default entity attribute.
AddSimpleColumn(EntityAttr attr)voidAdds the simple column using the default entity attribute.
AddSimpleColumn(string attrID)voidAdds the simple column using the default entity attribute.
ApplyFormats()voidApplies the formats used in panel to all rows.
CheckDataModel()voidChecks the Korzh.EasyQuery.DataModel object. Generates an exception if Korzh.EasyQuery.WinForms.ColumnsPanel.Model property has null value.
CheckQuery()voidChecks the Korzh.EasyQuery.Query object. Generates an exception if Korzh.EasyQuery.WinForms.ColumnsPanel.Query property has null value.
ColumnsChangedHandler(object sender, QueryColumnsChangeEventArgs e)voidCalled when Query.Result.Columns has been changed.
CoreAddSimpleColumn(EntityAttr attr)voidAdds the simple column.
CoreAddSimpleColumnThroughUI(string attrID)voidProcesses a click on "addition row".
CoreEndUpdate()voidPerforms necessary adjustments on update finish.
CoreFillEntityTree(ValueItemList items, Entity parentEntity)voidFills the list (tree) of entities and their attributes.
CreateAppearance()XPanel.XViewOptionsOverrides the Korzh.EasyQuery.WinForms.XPanel.CreateAppearance method.
CreateRowList()XRowListCreates the row list.
Deactivate()voidDeactivates the panel. Korzh.EasyQuery.WinForms.ColumnsPanel.Active property becomes false.
Dispose(bool disposing)voidClean up any resources being used.
DoAction(object sender, string actionName, object data)voidOverrides Korzh.EasyQuery.WinForms.XPanel.DoAction(System.Object,System.String,System.Object).
DoMoveRow(int idx, bool up)voidOverrides the method for Ctrl+Arrow signal processing.
DoSignal(object sender, Signals signalID, String[] paramList)voidOverrides Korzh.EasyQuery.WinForms.XPanel.DoSignal(System.Object,Korzh.EasyQuery.WinForms.Signals,System.String[]).
EntityAttributeFits(EntityAttr attr)boolReturns true if the entity attribute passed in the parameter can be used in (fits to) this panel.
EntityFits(Entity ent)boolReturns true if the entity passed in the parameter can be used in (fits to) this panel.
MoveRow(int index1, int index2)voidMoves row to specified position
MoveRowDown(int index)voidMoves the row to one position down (taking into account the level of other rows).
MoveRowUp(int index)voidMoves the row to one position up (taking into account the level of other rows).
OnGotFocus(EventArgs e)voidOverrides Korzh.EasyQuery.WinForms.XPanel.OnGotFocus(System.EventArgs).
OnKeyDown(KeyEventArgs e)voidOverrides XPanel.OnKeyDown(System.Windows.Forms.KeyEventArgs).
OnRowAdded(XRow row)voidOverrides Korzh.EasyQuery.WinForms.XPanel.OnRowAdded(Korzh.EasyQuery.WinForms.XRow)
OnRowListChanged()voidOverrides the Korzh.EasyQuery.WinForms.XPanel.OnRowListChanged.
Refresh()voidForces the control to invalidate its client area and immediately redraw itself and any child controls. Overrides System.Windows.Forms.Control.Refresh.
RefreshAddRow()void
RefreshByColumns()voidFully refreshes the panel on the base of Korzh.EasyQuery.WinForms.ColumnsPanel.Columns.
ScrollAddRowIntoView()voidScrolls the "click here to add..." row into view.
SetRowsWidth(int width)voidSets the width of the rows.
SortOrderChangedHander(object sender, SortOrderChangedEventArgs e)voidCalled when sort order is changed
UpdateModelInfo()voidUpdates all information based on data model information (such as list of entities).