如何为Gridview自定义控件设置自定义权限 [英] How to set Custom propetries for Gridview Custom Control
本文介绍了如何为Gridview自定义控件设置自定义权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了自定义网格控件。
I have created custom Grid control.
[Designer(typeof(GridViewDesigner))]
[ToolboxData(@"<{0}:CustomGridView runat=""server"" \>")]
现在我需要使用此自定义控件设置一些属性,如AutoGeneratedColumn,页眉和页脚样式,SelectedRow样式,寻呼机样式,行样式等。如何?
Now I need to set some properties like AutoGeneratedColumn, Header and Footer Style, SelectedRow Style, Pager Style, Row Style etc, with this custom control. how?
推荐答案
如何向asp.net自定义服务器添加自定义属性控制? [ ^ ]。
How to add custom property to asp.net custom server control?[^].
引用:
这是一个类。添加一个公共属性。
It's a class. Add a public property to it.
这篇关于如何为Gridview自定义控件设置自定义权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文