Information générale
Catégorie:
The Mere Mortals .NET Framework
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement