General information
Category:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only