Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inhertance
Message
De
17/11/2010 08:42:06
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Inhertance
Divers
Thread ID:
01489370
Message ID:
01489370
Vues:
94
I have a user control that inhertis mmDataGridView:
*******************************************************************************************
Imports OakLeaf.MM.Main.Windows.Forms

Imports System.Windows.Forms.Design
Imports System.ComponentModel

Public Class TelecomDataGridView
Inherits mmDataGridView

Public Sub New()

' This call is required by the designer.
InitializeComponent()

' Add any initialization after the InitializeComponent() call.
Me.AutoGenerateColumns = False
Me.BackgroundColor = Color.White
Me.SelectionMode = DataGridViewSelectionMode.FullRowSelect
End Sub
End Class
*******************************************************************************************
I placed this control on an mmBusinessForm:
*******************************************************************************************
Imports System.Data
Imports System.ComponentModel

Imports OakLeaf.MM.Main
Imports OakLeaf.MM.Main.Windows.Forms
Imports Telecom.TelecomBusiness
Imports OakLeaf.MM.Main.Business

Public Class MaintenanceForm
Inherits mmBusinessForm

Public Sub New()

' This call is required by the Windows Form Designer.
InitializeComponent()
End Sub
*******************************************************************************************
I then created an Inherited Form based on the above form:
*******************************************************************************************
Imports Telecom.TelecomBusiness

Public Class EmployeeMaintenanceForm
Private _employee As New Employee

Public Sub New()
Me._employee = CType(Me.RegisterPrimaryBizObj(New Employee), Employee)

InitializeComponent()
End Sub
*******************************************************************************************
I set the grids BindingSource to the business object above "Employee". I have four columns in the grid.
I've ran the form with and without data in business object and I do not see the data in my grid.

I'm sure I'm missing a step some where. Any help on this issue?

Thanks.

-Bob
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform