DataGridGetDataGridViewTemplate Method | |
Check first exists "TemplateClient" and secound exists "TemplateDatabase" in table DataGrid.
If no exists the template then create a template by reference to data class and save this in database as TemplateDatabase.
Namespace:
SOWIApp.Management.Data
Assembly:
SOWIApp.Management (in SOWIApp.Management.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax internal List<DataGrid> GetDataGridViewTemplate(
string pAppName,
string pTableName,
int pClientID,
List<PropertyInfo> pProperties
)
Friend Function GetDataGridViewTemplate (
pAppName As String,
pTableName As String,
pClientID As Integer,
pProperties As List(Of PropertyInfo)
) As List(Of DataGrid)
Parameters
- pAppName
- Type: SystemString
e.g. Ticket, TicketRegister - pTableName
- Type: SystemString
e.g. Ticket - pClientID
- Type: SystemInt32
use for TemplateClient view - pProperties
- Type: System.Collections.GenericListPropertyInfo
example code for properties parameter:
List<PropertyInfo> lProperties = typeof(DataItemClass).GetProperties().ToList();
Return Value
Type:
ListDataGridGet Data Grid View data list
See Also