sulla pagina aspx aggiungi la direttiva

<%@ Register TagPrefix="me" Assembly="MioAssembly" Namespace="MioNameSpace" %>

e come tag aggiungi

<me:myDataGrid ID="dtgStato "></me:myDataGrid>

nel code behind

Protected WithEvents dtgStato As myDataGrid