开发者

Getting the editor of a RepositoryItem

I think the editor for a RepositoryItem is created dynamical开发者_如何学Pythonly. Is there a way to get a reference to the editor?


According to the DevEx documentation, you must set all the properties of the repository item. Doing so will allow the parent control to dynamically create the correct 'type' of editor. Then you add it to the control's repository items collection - ex. from documentation:

RepositoryItemDateEdit riDateEdit = new RepositoryItemDateEdit();
// Customize the item... 
// Add the item to the control's internal repository. 
treeList1.RepositoryItems.Add(riDateEdit);
// Bind the item to the control's column. 
treeList1.Columns["Start Date"].ColumnEdit = riDateEdit;

Once you add the repository item to the items collection, you should be able to find and reference the editor. HTH ...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜