Connecting Tech Pros Worldwide Help | Site Map

creating custom GridView

Nenefta
Guest
 
Posts: n/a
#1: Mar 29 '06
Good afternoon everyone,

I would like to create a custom GridViewand use that in the rest of my
project, so all GridViews look the same. I thought it would be as easy
as creating a usercontrol with the following code:

Partial Class Layout_Componenten_EVDGridView
Inherits System.Web.UI.WebControls.GridView

End Class

But this gives me the error:
"Error 1property 'SupportAutoEvents' cannot be declared 'Overrides'
because it does not override a property in a base class.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\nieuws\c68332f7\80918f68\App_Web_ebtgdvrh.0. vb 68"

Does anyone know why I get this error, and more important, how to go
about creating a custom GridView?

Regards,
Marcel

Closed Thread