开发者

ASP.NET Component with custom property form

I'm developing a custom DataGridView control for internal use and I'd like to add a custom property option where it launches a WinForm for adding custom properties. Think of the Colum开发者_运维知识库ns property designer of the DataGridView where you click a button with the text "..." on it and it opens a WinForm where you can add different BoundColumns. This is what I exactly like to do but I don't know how or even where to start. How can one accomplish this?


This is what you need to know (the base): http://msdn.microsoft.com/en-us/library/zt27tfhy.aspx

This is an helpfull example (inside the first link): http://msdn.microsoft.com/en-us/library/az5kdaz0.aspx

If you want build a custom DataGrid, you need to build a control that inerith from DataGrid control, after read linked documents on top, you can be able to add Properties with required attributes for use it in Control.

(sorry for bad english, i'm italian!).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜