Click here to Skip to main content
15,610,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All, This is my first question here. I'm really a database guy trying to help out with ASP.NET. I've built basic pages before, and connected them to my database stored procedures using both declarative and code behind methods.

I am trying to create a custom custom control, based on the GridView control in ASP.NET, that I can add to my toolbox in VS 2008. I'm not sure if which template to start with, Class Library or Windows Form Control Library, I have tried both.
My immediate issue is that VS doesn't seem to recognize Imports System.Web.UI or anything after that.

At this point, I would be grateful for an example that does nothing more than put a wrapper around a GridView control, and let me add it to the toolbox with my own controlname, so I could at least have a starting point.

I apologize in advance if this is an inappropriate question.

Updated 2-Aug-11 7:05am

1 solution

Start with a new class library.
This article[^] explains this in a step by step manner and could help you out.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900