Class IntegratedGridView
Control which integrates a CursorGridViewControl
Inheritance
Implements
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class IntegratedGridView : UserControl
Constructors
| Improve this Doc View SourceIntegratedGridView()
Create new integrated grdiview
Declaration
public IntegratedGridView()
Properties
| Improve this Doc View SourceConfiguration
Current Grid-Configuration/DataContext
Declaration
public GridContainerModel Configuration { get; }
Property Value
Type | Description |
---|---|
GridContainerModel |
EmbeddedGridView
Get the instance of the currently embedded gridview, this should be CursorGridViewControl.
Declaration
public CursorGridViewControl EmbeddedGridView { get; }
Property Value
Type | Description |
---|---|
CursorGridViewControl |
IsNestedGrid
Gets or sets whether this is a nested grid
Declaration
protected bool IsNestedGrid { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MenuExtensions
List of menu extensions
Declaration
public IList<IGridMenuExtension> MenuExtensions { get; }
Property Value
Type | Description |
---|---|
IList<IGridMenuExtension> |
MenuHandler
Handler for working with grid view menu functions
Declaration
public GridMenuHandler MenuHandler { get; }
Property Value
Type | Description |
---|---|
GridMenuHandler |
NestedGridParameter
Gets or sets the nested grid parameter
Declaration
protected IDictionary<string, object> NestedGridParameter { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.Object> |
ParentGrid
Gets or sets the parent grid instance
Declaration
protected CursorGridViewControl ParentGrid { get; set; }
Property Value
Type | Description |
---|---|
CursorGridViewControl |
SelectedProfile
Get currently selected profile
Declaration
public GridProfileConfigurationModel SelectedProfile { get; }
Property Value
Type | Description |
---|---|
GridProfileConfigurationModel |
Methods
| Improve this Doc View SourceAddMenuExtension(IGridMenuExtension)
Add menu extension
Declaration
public void AddMenuExtension(IGridMenuExtension ext)
Parameters
Type | Name | Description |
---|---|---|
IGridMenuExtension | ext | Extension instance |
CancelLoading()
Cancel the current loading process
Declaration
public void CancelLoading()
Dispose()
Dispose the current object
Declaration
public void Dispose()
HideSearchSystem()
Hide the search system
Declaration
public void HideSearchSystem()
LoadConfiguration(Guid, Boolean)
Configurate the current IntegratedGridView/GridViewControl
Declaration
public void LoadConfiguration(Guid id, bool forceUpdate = false)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | Unique id of the grid |
System.Boolean | forceUpdate | Forces to update the cache list if true |
LoadConfiguration(GridContainerModel)
Configurate the current IntegratedGridView/GridViewControl with an instance of a GridContainerMdel
Declaration
public void LoadConfiguration(GridContainerModel configuration)
Parameters
Type | Name | Description |
---|---|---|
GridContainerModel | configuration | Instance of a GridContainerModel |
LoadConfiguration(String, Boolean)
Configurate the current IntegratedGridView/GridViewControl
Declaration
public void LoadConfiguration(string internName, bool forceUpdate = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | internName | Unique name of the grid |
System.Boolean | forceUpdate | Forces to update the cache list if true |
RefreshData()
Refresh data (reload grid), if a search-object is defiend, this will be used for refreshing data
Declaration
public void RefreshData()
SetDataConnection(String)
Set connection string for loading data, default is "default"
Declaration
public void SetDataConnection(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the connection string |
SetProfile(GridProfileConfigurationModel)
Set the currently selected profile
Declaration
public void SetProfile(GridProfileConfigurationModel profile)
Parameters
Type | Name | Description |
---|---|---|
GridProfileConfigurationModel | profile | Instance of a grid profile |
ShowRefreshMessage()
Show message, that the Grid must be refreshd for showing actual data
Declaration
public void ShowRefreshMessage()
ShowSearchSystem()
Show the search system
Declaration
public void ShowSearchSystem()
Events
| Improve this Doc View SourceSelectedProfileChanged
Will be called, if the selected profile changed
Declaration
public event IntegratedGridView.SelectedProfileChangedHandler SelectedProfileChanged
Event Type
Type | Description |
---|---|
IntegratedGridView.SelectedProfileChangedHandler |