想做一个用户自定义控件
控件内部就已绑定了数据源。既直接把控件拖到WebForm上,浏览 就可有数据出现。要求:
   1、有 System.Web.UI.WebControls.DataGrid 的所有属性。(可否用继承?)
   2、可接收我们自己添加的属性(查询条件)
   3、控件内部就已绑定了数据源。在Test.aspx文件中的代码如下:<cc1:WebCustomControl id="WebCustomControl1" runat="server" SchoolName="北京一中" ></cc1:WebCustomControl1>
其中"SchoolName" 是自己添加的属性。不知道有没有人能帮我解答。  暂定30分,若问题解决可再加分。谢谢各位!!!