Examples: EventMode property (grid)

Typically, you set the grid’s EventMode property using the Visual Basic Properties window. You can also set it through an event procedure, as shown in the following example:

Private Sub Window_BeforeOpen(OpenVisible As Boolean)
	If CustomersandProspects.Caption = ".Customers and Prospects." _ 
	'Shut off events for the window and the grid.
		CustomersandProspects.EventMode = emOriginalOnly
		CustomersandProspectsDetail.EventMode = emOriginalOnly
	End If
End Sub

Documentation Feedback