Click or drag to resize

DataGrid Class

Data grid view configuration
Inheritance Hierarchy
SystemObject
  DbContext
    SOWIDataDataStandard
      SOWIData.ManagementDataGrid

Namespace:  SOWIData.Management
Assembly:  SOWIData.Management (in SOWIData.Management.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public class DataGrid : DataStandard

The DataGrid type exposes the following members.

Constructors
  NameDescription
Public methodDataGrid
Initializes a new instance of the DataGrid class. Constructor without parameter
Public methodDataGrid(String, Int32, Boolean, Boolean)
Initializes a new instance of the DataGrid class. Suitable for SOWI Win standard DataGrid controller Constructor with parameter
Public methodDataGrid(String, DataGridViews, String, Int32, String, String, DataGridDataTypes, Int32)
Initializes a new instance of the DataGrid class with identification parameters. Puts default values on: CanVisible, CanEdit, visible on Win, Web and Mobil
Public methodDataGrid(String, DataGridViews, String, Int32, String, String, DataGridDataTypes, String, String, Boolean, Boolean, Boolean, Boolean, Int32, String, Boolean, Int32, Boolean, Boolean, Int32, Boolean, Boolean, Int32, Boolean)
Initializes a new instance of the DataGrid class with default and optional parameters includ identification
Top
Properties
  NameDescription
Public propertyActionDB
Value of Actions enumeration (value without database saved is saved in ActionText)
(Inherited from DataStandard.)
Public propertyActionText
Action text of Actions enumeration (value database saved)
(Inherited from DataStandard.)
Public propertyAppName
App name e.g. Ticket the name of App class (required)
Public propertyArchive
Is value false then active record Is value true then archived record
(Inherited from DataStandard.)
Public propertyCanDesign
Can user/application (e.g. SOWI Win Presentation Interface) is editing the properties for Windows, Web and Mobile
Public propertyCanEdit
User/application can field value is editing
Public propertyCanVisible
Can user/application is editing the visibility property values
Public propertyChangeTracker
Provides access to features of the context that deal with change tracking of entities.
(Inherited from DbContext.)
Public propertyChecked
Use for user interface handling by checkbox (true or false)
(Inherited from DataStandard.)
Public propertyClientID
Record on this client
(Inherited from DataStandard.)
Public propertyColorUI
Color handling for user interface e. g. row table
(Inherited from DataStandard.)
Public propertyColumnLabel
Column label
Public propertyColumnLabelDefault
Column default label
Public propertyConfiguration
Provides access to configuration options for the context.
(Inherited from DbContext.)
Public propertyCreateDate
Date created data record is set by method Insert
(Inherited from DataStandard.)
Public propertyCreateUser
User who created data record is set by method Insert
(Inherited from DataStandard.)
Public propertyDatabase
Creates a Database instance for this context that allows for creation/deletion/existence checks for the underlying database.
(Inherited from DbContext.)
Public propertyDataFieldName
Table field name for data grid view configuration
Public propertyDataFieldType
Data field type for data field name
Public propertyDataFieldTypeText
Data field type for data field name
Public propertyDateTimeValue
Use for application
(Inherited from DataStandard.)
Public propertyDeleteDate
Date as deleted data record is set by method Delete
(Inherited from DataStandard.)
Public propertyDeleteUser
User who deleted data record is set by method Delete
(Inherited from DataStandard.)
Public propertyDescription
Use for application
(Inherited from DataStandard.)
Public propertyEnumTypeName
Only information, not functionality.
Public propertyFlag
Use for application
(Inherited from DataStandard.)
Public propertyGUID
GUID for export import
(Inherited from DataStandard.)
Public propertyHelp
no function
(Inherited from DataStandard.)
Public propertyID
Unique identifier of record
(Inherited from DataStandard.)
Public propertyInFieldList
Is this field into field list
Public propertyItem
Index handling example this[FieldName]
(Inherited from DataStandard.)
Public propertyLabel
Use for application
(Inherited from DataStandard.)
Public propertyLastEditDate
Date last change is set by method Update
(Inherited from DataStandard.)
Public propertyLastEditUser
User who made last change on data record is set by method Update.
(Inherited from DataStandard.)
Public propertyLastUser
Gives user name who last work with this data item (create or edit)
(Inherited from DataStandard.)
Public propertyListName
List name for data field type List
Public propertyMobilFormVisible
Is field visible in Mobile form?
Public propertyMobilFormVisibleDefault
Default value whether field visible in Mobile form
Public propertyMobilListVisible
Is field visible in Mobile list
Public propertyMobilListVisibleDefault
Default value whether field visibl in Mobile list
Public propertyMobilListWidth
Column width into Mobile list
Public propertyMobilListWidthDefault
Default value for column width into Mobile list
Public propertyName
Optional whether required. Setting at class constructor SOWIData.Database.Connector
(Inherited from DataStandard.)
Public propertyNameOriginalValue
Orginal value of field Name
(Inherited from DataStandard.)
Public propertyOrder
Field list order
Public propertyOrderDefault
Field list default order
Public propertyRequired
Field must has a value
Public propertySelection
Use for user interface handling selection (options) Integer value example selection by ID
(Inherited from DataStandard.)
Public propertyStatus
Value of Statuses enumeration (without database saved is saved in StatusText)
(Inherited from DataStandard.)
Public propertyStatusText
Status text of Statuses enumeration (database saved)
(Inherited from DataStandard.)
Public propertyTableName
Table name for data grid view configuration
Public propertyTask
Value of Tasks enumeration (without database saved is saved in TaskText)
(Inherited from DataStandard.)
Public propertyTaskText
Task text of Tasks enumeration (database saved)
(Inherited from DataStandard.)
Public propertyText
Use for application
(Inherited from DataStandard.)
Public propertyUserName
Configuration for user
Public propertyValue
Use for application
(Inherited from DataStandard.)
Public propertyView
Data grid view configuration (see DataGridViews)
Public propertyViewName
Data grid view configuration (see DataGridViews)
Public propertyWebFormVisible
Is field visible in Web form?
Public propertyWebFormVisibleDefault
Default value whether field visible in Web form
Public propertyWebListVisible
Is field visible in Web list?
Public propertyWebListVisibleDefault
Default value whether field visible in Web list?
Public propertyWebListWidth
Column width into Web list
Public propertyWebListWidthDefault
Default value for column width into Web list
Public propertyWinFormVisible
Is field visible in Windows form?
Public propertyWinFormVisibleDefault
Default value whether field visible in Windows form
Public propertyWinListVisible
Is field visible in Windows list?
Public propertyWinListVisibleDefault
Default value whether field visible in Windows list?
Public propertyWinListWidth
Column width into Windows list
Public propertyWinListWidthDefault
Default value for column width into Windows list
Top
Methods
  NameDescription
Public methodDispose
Calls the protected Dispose method.
(Inherited from DbContext.)
Protected methodDispose(Boolean)
Disposes the context. The underlying ObjectContext is also disposed if it was created is by this context or ownership was passed to this context when this context was created. The connection to the database (DbConnection object) is also disposed if it was created is by this context or ownership was passed to this context when this context was created.
(Inherited from DbContext.)
Public methodEntry(Object)
Gets a DbEntityEntry object for the given entity providing access to information about the entity and the ability to perform actions on the entity.
(Inherited from DbContext.)
Public methodEntry``1(UMP)
Gets a DbEntityEntry object for the given entity providing access to information about the entity and the ability to perform actions on the entity.
(Inherited from DbContext.)
Public methodEquals (Inherited from DbContext.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode (Inherited from DbContext.)
Public methodGetType (Inherited from DbContext.)
Public methodGetValidationErrors
Validates tracked entities and returns a Collection of DbEntityValidationResult containing validation results.
(Inherited from DbContext.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnModelCreating
This method is called when the model for a derived context has been initialized, but before the model has been locked down and used to initialize the context. The default implementation of this method does nothing, but it can be overridden in a derived class such that the model can be further configured before it is locked down.
(Inherited from DbContext.)
Public methodSaveChanges
Saves all changes made in this context to the underlying database.
(Inherited from DbContext.)
Public methodSet(Type)
Returns a non-generic DbSet instance for access to entities of the given type in the context, the ObjectStateManager, and the underlying store.
(Inherited from DbContext.)
Public methodSet``1
Returns a DbSet instance for access to entities of the given type in the context, the ObjectStateManager, and the underlying store.
(Inherited from DbContext.)
Private methodSetValuesGrid
Puts column properties for Windows, Mobile and Web
Protected methodShouldValidateEntity
Extension point allowing the user to override the default behavior of validating only added and modified entities.
(Inherited from DbContext.)
Public methodToString (Inherited from DbContext.)
Protected methodValidateEntity
Extension point allowing the user to customize validation of an entity or filter out validation results. Called by GetValidationErrors.
(Inherited from DbContext.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetObjectToBytes
Convert an object to byte array
(Defined by Extensions.)
Public Extension MethodIsNumber
Check is value a number
(Defined by Convert.)
Public Extension MethodToHTMLDisplay(DataGrid, TempDataDictionary)Overloaded. (Defined by Extensions.)
Public Extension MethodCode exampleToHTMLDisplay(String, DataGridDataTypes, String, String, String, String, TempDataDictionary)Overloaded.
Gives HTML code for display.
(Defined by Extensions.)
Public Extension MethodToHTMLEditor(DataGrid, TempDataDictionary, String)Overloaded. (Defined by Extensions.)
Public Extension MethodToHTMLEditor(String, DataGridDataTypes, String, String, String, TempDataDictionary, Boolean, String, DataPlacements, String, String)Overloaded.
Gives HTML code for Input field
(Defined by Extensions.)
Public Extension MethodCode exampleToHTMLHidden(String)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodToHTMLHidden(DataGrid)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodXMLWrite
Gives XML string from data item
(Defined by Helper.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate propertySystem#Data#Entity#Infrastructure#IObjectContextAdapter#ObjectContext
Returns the Entity Framework ObjectContext that is underlying this context.
(Inherited from DbContext.)
Top
Remarks
Data grid view data on based standard data class
See Also