ControllerDataGridDataItemClass Class | ![]() |
Namespace: SOWIWin.Helper
public abstract class ControllerDataGrid<DataItemClass> : PageDataGrid<DataItemClass>, IControllerDataGrid
The ControllerDataGridDataItemClass type exposes the following members.
Name | Description | |
---|---|---|
![]() | ControllerDataGridDataItemClass |
Initializes a new instance of the ControllerDataGrid class.
Constructor without parameter
|
![]() ![]() | ControllerDataGridDataItemClass(String, String) |
Initializes a new instance of the ControllerDataGrid class.
Constructor with parameter
|
Name | Description | |
---|---|---|
![]() ![]() | AppModule |
Requirement for data handling
|
![]() | ConnectionString |
Database connection string
|
![]() | ControllerName |
Controller name
|
![]() | DataGridView |
Data Grid View puts of method SetViewBag
(Inherited from PageDataGridDataItemClass.) |
![]() | FontSize |
Gets or sets data grid font size.
|
![]() ![]() | PageDataGridUI |
Page data grid user interface (WPF XAML object)
(Inherited from PageDataGridDataItemClass.) |
![]() | TempData |
Represents a set of data that persists only instance
(Inherited from PageDataGridDataItemClass.) |
![]() | UserName |
Database user
|
Name | Description | |||||||
---|---|---|---|---|---|---|---|---|
![]() | Copy |
Copy the selected data item to his data grid
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | CopyItem |
Copies a object 1:1
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() ![]() | CopyToClipboard |
Copy the selected data items to clipboard
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | CopyToClipboard(IList) |
Copy data items to clipboard
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | DataRefresh |
Refresh user interface data table view
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | Equals | (Inherited from Object.) | ||||||
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | ||||||
![]() | GetColumnIndexByName |
Give column index by column name
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | ||||||
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) | ||||||
![]() ![]() | InsertFromClipboard |
Insert data items from clipboard
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() ![]() | Load |
Load all data items with object AppModule
method GetAll
| ||||||
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | ||||||
![]() ![]() | OnCollectionChanged |
Data items changed handling
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() ![]() | OnCopy |
Event copy from object DataGrid (DataGridMain)
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | OnCopyToClipboard |
Called method CopyToClipboard(IList). Can be overridden.
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | OnPaste |
Insrt from clipboard
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | OnRemove |
Data item remove of datagrid
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() ![]() | OnSetColumn |
Puts column with a selection list (ComboBox object, when exist a ListName)
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() ![]() | OnSetColumnsDisplayIndex |
Set columns display order (index)
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() ![]() | OnSetColumnsReadOnly |
Set column field edit or read only
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() ![]() | OnSetColumnsVisibility |
Set columns visibility.
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() | SetData |
Set data to DataItems and PageDataGridUI.DataGridMain.DataContext
(Inherited from PageDataGridDataItemClass.) | ||||||
![]() ![]() | SetViewBag |
Puts values of objects:
| ||||||
![]() ![]() | ToCopy | (Inherited from PageDataGridDataItemClass.) | ||||||
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) | ||||||
![]() ![]() | Update |
Data items was changed update to database.
| ||||||
![]() ![]() | Validate |
Data items validation with AppModule method Validate.
Is data item not valid then show a message on desktop.
|
Name | Description | |
---|---|---|
![]() | DataItems |
Data items object set by method SetData
(Inherited from PageDataGridDataItemClass.) |
![]() |
---|
Syntax controller name: [name]Controller Suffix Controller e.g. TicketController |
The AppModule object is data handling and must elments (methods, properties) from interface IAppControllerDataItemClass
The PageDataGridDataItemClass is user interface
public MainWindow() { InitializeComponent(); this.FrameDataGridView.Content = null; this.FrameDictionary.Content = null; SetForm(); }
private void SetForm() { this.DataGridView = null; this.DictionaryUI = null; if(true) { this.DataGridView = new Controllers.DataGridViewController(this.Database.ConnectionString, this.UserName); this.FrameDataGridView.Content = this.DataGridView.PageDataGridUI; this.DictionaryUI = new Controllers.DictionaryUIController(this.Database.ConnectionString, this.UserName); this.FrameDictionary.Content = this.DictionaryUI.PageDataGridUI; } }
private void Load() { this.FrameDataGridView.Content = DataGridView.Load(); this.FrameDictionary.Content = DictionaryUI.Load(); }
Can called by event RibbonButtonDataUpdate_Click.
This example update all data grids.
private void Update() { DataGridView.Update(); DictionaryUI.Update(); }
switch (TabPageIndex) { case Tabs.none: break; case Tabs.DataGridView: DataGridView.Update(); break; case Tabs.Dictionary: DictionaryUI.Update(); break; case Tabs.SQL: break; default: break; }