VS2008中的自定义Gridview [英] Custom Gridview in VS2008

查看:60
本文介绍了VS2008中的自定义Gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,这是我的第一个问题.我真的是一个试图帮助ASP.NET的数据库专家.我之前已经构建了基本页面,并使用声明性方法和代码隐藏方法将它们连接到数据库存储过程.

我试图基于ASP.NET中的GridView控件创建一个自定义自定义控件,可以将其添加到VS 2008中的工具箱中.我不确定以哪个模板开头的类库或Windows窗体控件图书馆,我都尝试过.
我的直接问题是VS似乎无法识别Imports System.Web.UI或之后的任何内容.

在这一点上,我将不胜感激一个示例,该示例只不过在GridView控件周围放置了一个包装器,并让我使用自己的控件名将其添加到工具箱中,因此至少可以有一个起点. >
如果这是不适当的问题,我谨向您致歉.

Bob

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.

Bob

推荐答案

从新的类库开始.
本文 [ ^ ]逐步说明这一点,可以为您提供帮助.
Start with a new class library.
This article[^] explains this in a step by step manner and could help you out.


这篇关于VS2008中的自定义Gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆